get window handler from started process
问题 I see there's win32process.GetWindowThreadProcess() that gets a window handler and returns it's process id. Is there a way to do the opposite: get the window handler of a running process by it's process id? Something like win32gui.GetWindowHandler(processId) ? Specifically What I'm trying to do: I have a python script that runs an external program, lets say notepad.exe. Notepad is fired when runProgram() method is called. I want to prevent this method from running Notepad more than once. I