ntdll: Add semi-stub implementation for SystemExecutionState query.

This commit is contained in:
Luke Benstead 2009-07-14 17:02:59 +01:00 committed by Alexandre Julliard
parent e5d621c081
commit 8ed1f0547e
1 changed files with 9 additions and 0 deletions

View File

@ -1328,6 +1328,15 @@ NTSTATUS WINAPI NtPowerInformation(
PowerCaps->DefaultLowLatencyWake = PowerSystemUnspecified;
return STATUS_SUCCESS;
}
case SystemExecutionState: {
PULONG ExecutionState = lpOutputBuffer;
FIXME("semi-stub: SystemExecutionState\n");
if (lpInputBuffer != NULL)
return STATUS_INVALID_PARAMETER;
/* FIXME: The actual state should be the value set by SetThreadExecutionState which is not currently implemented. */
*ExecutionState = ES_USER_PRESENT;
return STATUS_SUCCESS;
}
default:
/* FIXME: Needed by .NET Framework */
WARN("Unimplemented NtPowerInformation action: %d\n", InformationLevel);