Getting process by name on Win XP
David Sparrman
David.Sparrman at personalchemistry.com
Thu Mar 27 14:34:52 EST 2003
Hello,
I have a class that works OK on Windows NT and Windows 2000, but now
when tried on Windows XP Pro it fails miserably.
The call:
win32pdhutil.FindPerformanceAttributesByName(processName)
On NT and W2K the result is a list of PIDs with that name.
On XP the result is this traceback:
File "C:\Python21\win32\lib\win32pdhutil.py", line 49, in
FindPerformanceAttributesByName
items, instances = win32pdh.EnumObjectItems(None,None,object, -1)
api_error:(-2147481646, 'EnumObjectItems for buffer size', 'No error
message is available')
Python 2.1.2
win32all build 145
(old versions, but this is part of an old release and cannot easily be
upgraded without explicit permission)
Help?
More information about the Python-list
mailing list