Counter Name and Description Additions to the Registry (Windows CE 5.0)

Send Feedback

You must add information to the registry for the objects and counters you add to the system.

The following code example shows the registry location where performance counter names and descriptions are stored.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
Last Counter = highest counter index
Last Help = highest help index
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009
Counter = 2 System 4 Memory
Help = 3 The System object type

To add names and descriptions to the objects and counters for your application, use the lodctr utility included with the OS.

The lodctr utility takes strings from an .ini file and adds them to the Counter and Help values under the appropriate language subkeys. The lodctr utility also updates the Last Counter and Last Help values.

The following code example shows the values that the lodctr utility adds to the Services subkey for the application.

\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Application_Name\Performance
First Counter = lowest counter index
First Help = lowest help index
Last Counter = highest counter index
Last Help = highest help index

See Also

lodctr Usage

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.