hi I am trying to get PID from the foreground window, but this doesn't work because I am passing the wrong kind of handle to the function. This is under python.
How do I fix this?
thx!
import ctypes
import time
time.sleep(2)
handle = ctypes.windll.user32.GetForegroundWindow()
print(handle)...
Hello, my application has a feature that shows printers details as tree node and I use EnumPrinters API to fill nodes of this tree. i.e., the provider name, domain names and printer names etc. We have used Lazy loading concept in this tree formation. EnumPrinters API is called for any node level...
api
application development
codingissue
console application
debugging
enumprinters
error code
error handling
interop
lazy loading
memory management
platform invoke
printer details
printer enumeration
printers
sample code
win32 api
windows development
windows vista