GetThreadPriorityBoost

The GetThreadPriorityBoost function returns the priority boost control state of the specified thread.

BOOL GetThreadPriorityBoost(
  HANDLE hThread,  // handle to thread
  PBOOL pDisablePriorityBoost
                   // indicates priority boost control state
);
 

Parameters

hThread
Handle to the thread. This thread must have THREAD_QUERY_INFORMATION access.
pDisablePriorityBoost
Pointer to a Boolean 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.

Return Values

If the function succeeds, the return value is nonzero. In that case, the Boolean 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.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in winbase.h.
  Import Library: Use kernel32.lib.

See Also

Processes and Threads Overview, Process and Thread Functions, SetThreadPriorityBoost