[python-win32] Error FindPerformanceAttributesByName

Graham Bloice graham.bloice at trihedral.com
Wed May 16 14:41:24 CEST 2007


Tim Golden wrote:
> le dahut wrote:
>> Hi,
>>
>> I'm using win32pdhutil.FindPerformanceAttributesByName in order to know 
>> if 'explorer.exe' is running or not. Sometimes I get this error :
>> """
>>    File "win32pdhutil.pyc", line 97, in FindPerformanceAttributesByName
>>
>>    File "win32pdhutil.pyc", line 60, in GetPerformanceAttributes
>>
>> pywintypes.error: (-2147481643, 'CollectQueryData', 'No error message is 
>> available')
>> """
>>
>> I've googled for "2147481643" but didn't find interesting pages. Can 
>> someone explain me what's happening ?
> 
> Notice that the number is actually negative: -2147481643
> which equates to hex 800007d5. Might be worth searching on
> that. Meanwhile...
> 

FYI, the error "PDH_NO_DATA" is defined as 0x800007D5 in the SDK header
files.  The comment beside it states "No data to return".

-- 
Regards,

Graham Bloice


More information about the Python-win32 mailing list