PerfStopProvider function (perflib.h)

Removes the provider's registration from the list of registered providers and frees all resources associated with the provider.

Syntax

ULONG PerfStopProvider(
  [in] HANDLE ProviderHandle
);

Parameters

[in] ProviderHandle

Handle to the provider.

Return value

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, the return value is a system error code.

Remarks

The CounterCleanup function calls this function; do not call this function directly.

Windows Vista:  The PerfAutoCleanup function calls this function.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header perflib.h
Library Advapi32.lib
DLL Advapi32.dll

See also

PerfStartProvider