Export (0) Print
Expand All

DisableThreadProfiling function

Disables thread profiling.

Syntax


DWORD APIENTRY DisableThreadProfiling(
  _In_  HANDLE PerformanceDataHandle
);

Parameters

PerformanceDataHandle [in]

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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

EnableThreadProfiling
QueryThreadProfiling

 

 

Community Additions

ADD
Show:
© 2014 Microsoft