At Tuesday 31/10/2006 14:48, Tim Roberts wrote:
I am trying to get processor performance stats using the pywin32pdh and
pywin32pdhutil modules. It works fine on Windows 2000 and Windows XP, but
not on Windows server 2003(SP1). I am using Python 2.4.3 and
pywin32-210.win32-py2.4.
Windows error
Also, the names are localized, so if you have a non-english version
of Windows, you have to look up what are the translated names.
(I don't know how to obtain a neutral name usable everywhere)
Although it is far from perfect, the find_pdh_counter_localized_name()
function in win32pdhutil does
Windows error messages are better handled in hex. -1073738810 is
CBC6, and a quick Google on that shows it is basically performance
counter not found.
Thanks for the tip.
You can use perfmon to explore what counters are really present.
Perhaps the privileged time counter was renamed