Export (0) Print
Expand All

Removal of Counter Names and Descriptions from the Registry (Windows CE 5.0)

Windows CE 5.0
Send Feedback

The unlodctr utility removes the registry entries created by lodctr.

The following code example shows the command-line syntax for unlodctr.

unlodctr Application_Name

The unlodctr utility looks up the First Counter and Last Counter values in the Performance subkey for the application to determine the indexes of the counter objects to remove.

The following code example shows the changes that unlodctr makes to the Perflib subkey.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
Last Counter = updated if changed 
Last Help = updated if changed 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib \009
Counter = application text removed 
Help = application text removed 

The unlodctr utility also removes the First Counter, First Help, Last Counter, and Last Help values from the Performance subkey for the application.

The unloading function of unlodctr, UnloadPerfCounterTextStrings, is declared in Loadperf.h and exported from Loadperf.dll. You can call this function directly from your uninstall program.

The following code example shows the syntax for this function.

LONG UnloadPerfCounterTextStrings(
LPSTR lpCommandLine, 
BOOL bQuietModeArg 
);

The lpCommandLine parameter is the name of your application.

The bQuietModeArg parameter is a Boolean value that specifies whether to display output during the unloading of the text strings for the counter.

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is a nonzero error code defined in the Winerror.h file.

See Also

lodctr Usage


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft