UnloadPerfCounterTextStringsA function

Unloads performance objects and counters from the computer for the specified application.


LOADPERF_FUNCTION UnloadPerfCounterTextStringsA(
  LPSTR lpCommandLine,
  BOOL  bQuietModeArg



Null-terminated string that consists of one or more arbitrary letters, a space, and then the name of the application. The name of the application must match the drivername key value found in the initialization (.ini) file used to load the text strings.


Set to TRUE to prevent the function from displaying the output from the Unlodctr tool; otherwise, FALSE. This parameter has meaning only if the application is run from a command prompt.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the system error codes.


This function provides an API to the functionality provided by Unlodctr tool. For more information, see Removing Counter Names and Descriptions from the Registry.


Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header loadperf.h
Library Loadperf.lib
DLL Loadperf.dll

See also