The unlodctr tool removes the registry entries created by lodctr. The application name that you pass to unlodctr must match the name of the application key that you created under the Services key. For details on running unlodctr see, Help and Support Center.
Using unlodctr
The unlodctr tool looks up the first and last counter and help index values using the like named registry values under your application's Performance key. The unlodctr tool uses the range of index values to remove the text from Counters and Help values for each language identifier.
Using the index values, unlodctr makes the following changes to the registry.
HKEY_LOCAL_MACHINE
\SOFTWARE
\Microsoft
\Windows NT
\CurrentVersion
\Perflib
Last Counter = updated if changed
Last Help = updated if changed
\009
Counters = application text removed
Help = application text removed
\supported language, other than English
Counters = application text removed
Help = application text removed
The unlodctr tool also removes the First Counter, Last Counter, First Help, Last Help, and Object List values from the application's Performance key located at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\application-name\Performance.
Note:
The unloading function of unlodctr, UnloadPerfCounterTextStrings, is declared in Loadperf.h and exported from Loadperf.dll. This allows you to call this function directly from your uninstall program.
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
