DisableThreadProfiling function (winbase.h)

Disables thread profiling.

Syntax

DWORD DisableThreadProfiling(
  [in] HANDLE PerformanceDataHandle
);

Parameters

[in] PerformanceDataHandle

The handle that the EnableThreadProfiling function returned.

Return value

Returns ERROR_SUCCESS if the call is successful; otherwise, a system error code (see Winerror.h).

Remarks

You must call this function from the same thread that enabled profiling for the specified handle. You must call this function before exiting the thread; otherwise, you will leak resources (the resources are not reclaimed until the process exits).

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See also

EnableThreadProfiling

QueryThreadProfiling