Killing process
Peter Hansen
peter at engcorp.com
Sat Apr 30 11:00:53 EDT 2005
Harlin Seritt wrote:
> I think I need something besides TerminateProcess(). Is there anyway
> possible to terminate a process by just passing a string value to the
> function? Honestly, I am not interesting in terminating a process by
> its handle.
This is a bizarre request. Why can't you just call int() as you did in
your example to turn the string into a number? And if you can do that,
why would you have a problem using the *defined mechanism* to convert
from a PID to a handle, which is what the Windows API routine to kill
processes requires?
-Peter
More information about the Python-list
mailing list