QueryThreadProfiling function (winbase.h)

Determines whether thread profiling is enabled for the specified thread.

Syntax

DWORD QueryThreadProfiling(
  [in]  HANDLE   ThreadHandle,
  [out] PBOOLEAN Enabled
);

Parameters

[in] ThreadHandle

The handle to the thread of interest.

[out] Enabled

Is TRUE if thread profiling is enabled for the specified thread; otherwise, FALSE.

Return value

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

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

DisableThreadProfiling

EnableThreadProfiling