Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hyper-V Hypervisor Logical Processor % Total Run Time counter

37 views
Skip to first unread message

Dempster@discussions.microsoft.com William Dempster

unread,
Nov 17, 2009, 11:18:02 AM11/17/09
to
I have been creating a C++ program that uses registry calls to enumerate
registry counters and categories on Windows 2008, 64 bit that has Hyper-V
installed.

When running this program, I have run into an issue where the % Total Run
Time counter and a few other Hyper-V counters under the Hyper-V Hypervisor
Logical Processor category cannot be enumerated. The program receives the
error that the "ObjectTitleIndex is 0" when reading the Performance Data
Block area for this counter. This should not have a 0 index. Other Hyper-V
counters are enumerated okay because the ObjectTitleIndex is not 0.

The Hyper-V Hypervisor Logical Processor % Total Run Time counter does
appear in Perfmon , when using the Windows utility program CtrList.exe, and
programatically using the pdh library.

The Hyper-V Hypervisor Logical Processor % Total Run Time counter also
cannot be enumerated/found using the Windows 2000 utility
programShowPerf.exe as well. The error - ObjectTitleIndex is 0 returned.

Has anyone run into this issue when using registry calls to enumerate the
Hyper-V Hypervisor Logical Processor % Total Run Time counter? I'd prefer to
use the direct registry calls that scan the Performance Data Block to get the
correct "ObjectTitleIndex" rather than using the pdh library.

Is using the pdh library the only way to enumerate/find this counter from
the data block?

0 new messages