/*
* Checks if the privilege for Real-Time Priority is there
* Beware about this function behavior:
- * - In case CheckOnly is set to TRUE, then the function will only check
+ * - In case Keep is set to FALSE, then the function will only check
* whether real time is allowed and won't grant the privilege. In that case
* it will return TRUE if allowed, FALSE otherwise. Not a state!
- * It means you don't have to release privilege when calling with TRUE.
+ * It means you don't have to release privilege when calling with FALSE.
*/
PVOID
WINAPI
-BasepIsRealtimeAllowed(IN BOOLEAN CheckOnly)
+BasepIsRealtimeAllowed(IN BOOLEAN Keep)
{
ULONG Privilege = SE_INC_BASE_PRIORITY_PRIVILEGE;
PVOID State;
Status = RtlAcquirePrivilege(&Privilege, 1, 0, &State);
if (!NT_SUCCESS(Status)) return NULL;
- if (CheckOnly)
+ if (!Keep)
{
RtlReleasePrivilege(State);
State = (PVOID)TRUE;