[python-win32] How to determine if a process (known pid) is still running ?

Julio Canto jcanto at hispasec.com
Sun Oct 5 03:46:08 CEST 2008


Stef Mientki escribió:
> hello,
> 
> How to determine if a process (known pid) os still running ?
> 
> Googling the web, I found 1 solution in killing the process,
> but that's not what I want, I want to reuse the running process.
> 
> I could also ask a complete list of active processes,
> but from my experiences that's quite slow.

Probalby win32process.GetExitCodeProcess would be useful for you.

-- 
Regards,

Julio Canto | VirusTotal.com | Hispasec Sistemas Lab | Tlf: +34.902.161.025
| Fax: +34.952.028.694 | PGP Key ID: EF618D2B | jcanto at hispasec.com


More information about the python-win32 mailing list