Retrieves the priority boost control state of the specified thread.
BOOL GetThreadPriorityBoost(
HANDLE hThread,
PBOOL pDisablePriorityBoost
)
hThread
Type: HANDLE
[in] A handle to the thread. The handle must have the THREAD_QUERY_INFORMATION or THREAD_QUERY_LIMITED_INFORMATION access right. For more information, see Thread Security and Access Rights.
Note
The handle must have the THREAD_QUERY_INFORMATION access right.
pDisablePriorityBoost
Type: PBOOL
[out] A pointer to a variable that receives the priority boost control state. A value of TRUE indicates that dynamic boosting is disabled. A value of FALSE indicates normal behavior.
Type: BOOL
If the function succeeds, the return value is nonzero. In that case, the variable pointed to by the pDisablePriorityBoost parameter receives the priority boost control state.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Header: Declared in processthreadsapi.h.
Library: Use kernelx.lib.