QueryThreadProfiling function

Determines whether thread profiling is enabled for the specified thread.

Syntax


DWORD APIENTRY QueryThreadProfiling(
  _In_  HANDLE   ThreadHandle,
  _Out_ PBOOLEAN Enabled
);

Parameters

ThreadHandle [in]

The handle to the thread of interest.

Enabled [out]

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

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

DisableThreadProfiling
EnableThreadProfiling

 

 

Community Additions

ADD
Show: