Howto get process id from window handler (windows)

Miki Tebeka tebeka at cs.bgu.ac.il
Tue May 21 04:27:36 EDT 2002


Hello All,

I'd like to find a application by name and then terminate it. 
EnumWindows gives my the window handle of all current windows, however
TerminateProcess needs a process handle.

How can I make the link? (hWnd -> hInstance)

Thanks.
Miki



More information about the Python-list mailing list