S
szu
Hi,
I need to collect some performance data using PDH API. The problem is
that the following line:
PdhAddCounter (hQuery, _T("\\Processor(_Total)\\% Processor Time"), 0,
&CounterHandle);
compiled with x64 as a target machine and run on 64-bit Windows XP
always returns 0xC0000BB8 (The specified object is not found on the
system), however 32-bit version works well. Besides if I run 32-bit
perfomon.exe there is available a lot of performance counters
(including used in the above line). 64-bit version does not allow to
choose this counter and others like disk, memory etc. How to measure
the total processor time in 64-bit application?
Regards,
Tomek
I need to collect some performance data using PDH API. The problem is
that the following line:
PdhAddCounter (hQuery, _T("\\Processor(_Total)\\% Processor Time"), 0,
&CounterHandle);
compiled with x64 as a target machine and run on 64-bit Windows XP
always returns 0xC0000BB8 (The specified object is not found on the
system), however 32-bit version works well. Besides if I run 32-bit
perfomon.exe there is available a lot of performance counters
(including used in the above line). 64-bit version does not allow to
choose this counter and others like disk, memory etc. How to measure
the total processor time in 64-bit application?
Regards,
Tomek