[python-win32] list/kill processes on Win9x and NT+...

RayS rays at blue-cove.com
Wed Jul 13 05:30:36 CEST 2005


Ah, now I just found after searching for "CreateToolhelp32Snapshot"
http://sourceforge.net/mailarchive/message.php?msg_id=8291643

Thanks Gabriel,
Ray

At 07:46 PM 7/12/2005, Gabriel Genellina wrote:
>At Tuesday 12/7/2005 14:04, Ray Schumacher wrote:
>
>>I had looked over the methods to list/kill processes on Win32, and could not (yet) find a "pure" Python way to do it that works on 9x, since I could not get win32pdhutil to work on 98.
>>So, I combined subprocess.py and pv.exe from
>>http://www.xmlsp.com/pview/PrcView.zip
>>and wrote a quick app to kill unauthorized process and compiled with py2exe.
>>
>>Does anyone have a way to list/kill without the external process that works in all 9x and XP?
>
>PDH will work for NT, 2000 and up. For Win95/98 you can enumerate processes using ToolHelp32: http://support.microsoft.com/kb/q175030/
>
>
>Gabriel Genellina
>Softlab SRL 



More information about the Python-win32 mailing list