Commit 1cfaa915 authored by Michael Hoffman's avatar Michael Hoffman Committed by Alexandre Julliard

powrprof: Implement IsPwrSuspendAllowed.

parent be59368d
...@@ -225,11 +225,9 @@ BOOLEAN WINAPI IsPwrShutdownAllowed(VOID) ...@@ -225,11 +225,9 @@ BOOLEAN WINAPI IsPwrShutdownAllowed(VOID)
BOOLEAN WINAPI IsPwrSuspendAllowed(VOID) BOOLEAN WINAPI IsPwrSuspendAllowed(VOID)
{ {
/* FIXME: See note #2 */
SYSTEM_POWER_CAPABILITIES PowerCaps; SYSTEM_POWER_CAPABILITIES PowerCaps;
FIXME("() stub!\n");
NtPowerInformation(SystemPowerCapabilities, NULL, 0, &PowerCaps, sizeof(PowerCaps)); NtPowerInformation(SystemPowerCapabilities, NULL, 0, &PowerCaps, sizeof(PowerCaps));
return FALSE; return PowerCaps.SystemS1 && PowerCaps.SystemS2 && PowerCaps.SystemS3;
} }
BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy) BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment