Export (0) Print
Expand All
Expand Minimize

UnloadPerfCounterTextStrings function

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

Syntax


DWORD UnloadPerfCounterTextStrings(
  _In_  LPCTSTR commandLine,
  _In_  BOOL bQuietModeArg
);

Parameters

commandLine [in]

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.

bQuietModeArg [in]

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.

Remarks

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

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Loadperf.h

Library

Loadperf.lib

DLL

Loadperf.dll

Unicode and ANSI names

UnloadPerfCounterTextStringsW (Unicode) and UnloadPerfCounterTextStringsA (ANSI)

See also

LoadPerfCounterTextStrings

 

 

Community Additions

ADD
Show:
© 2014 Microsoft