GetProcessPriorityBoost

[New - Windows NT]

The GetProcessPriorityBoost function returns the priority boost control state of the specified process.

BOOL GetProcessPriorityBoost(

HANDLE hProcess, // handle to process
PBOOL pDisablePriorityBoost // indicates priority boost control state
);  

Parameters

hProcess

Handle to the process. This handle must have the PROCESS_QUERY_INFORMATION access right. For more information, see Process Objects.

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.

See Also

SetProcessPriorityBoost