GetProcessPriorityBoost function (processthreadsapi.h)

Retrieves the priority boost control state of the specified process.

Syntax

BOOL GetProcessPriorityBoost(
  [in]  HANDLE hProcess,
  [out] PBOOL  pDisablePriorityBoost
);

Parameters

[in] hProcess

A handle to the process. This handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights.

Windows Server 2003 and Windows XP:  The handle must have the PROCESS_QUERY_INFORMATION access right.

[out] pDisablePriorityBoost

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.

Return value

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.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header processthreadsapi.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See also

Priority Boosts

Process and Thread Functions

Processes

Scheduling Priorities

SetProcessPriorityBoost