大网数据广告活动
性能与资源

Removing Counter Names and Descriptions from the Registry

· 52CE 我爱测

The unlodctr tool removes the registry entries created by lodctr.

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.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 07/14/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。