[python-win32] Any way to get PyHANDLE for any running process?
Brett Cannon
bac at OCF.Berkeley.EDU
Tue Jun 29 15:01:54 EDT 2004
I am having a problem of a process not closing when it should, actually
stemming from IE's COM object, and it prevents me from creating another
IE COM object. I would like to have some way to check if IEXPLORE.EXE
is already running, and if so, then kill it.
I noticed win32process.TerminateProcess(), but it wants a PyHANDLE and I
can't figure out how to create one for any process other than the
currently running one.
Any help on this would be great. Already sick of doing it manually
through the Task Manager.
-Brett
More information about the Python-win32
mailing list