win32pdh to get the PIDs ???

vincent delft vdelft at itmasters.com
Wed Jun 13 03:47:06 EDT 2001


import win32pdh
import time

while 1:
 dummy,processes = win32pdh.EnumObjectItems(None,None,'Process',
win32pdh.PERF_DETAIL_WIZARD)
 print "LEN",len(processes)
 time.sleep(3)


I create new processes, but the return still the same.
Why this give always the same number of processes ???
(I'm on a W2K with Python 2.1)





More information about the Python-list mailing list