powrprof: Implement IsPwrSuspendAllowed.

oldstable
Michael Hoffman 2008-04-16 18:00:33 -04:00 committed by Alexandre Julliard
parent be59368dd1
commit 1cfaa91570
1 changed files with 1 additions and 3 deletions

View File

@ -225,11 +225,9 @@ BOOLEAN WINAPI IsPwrShutdownAllowed(VOID)
BOOLEAN WINAPI IsPwrSuspendAllowed(VOID)
{
/* FIXME: See note #2 */
SYSTEM_POWER_CAPABILITIES PowerCaps;
FIXME("() stub!\n");
NtPowerInformation(SystemPowerCapabilities, NULL, 0, &PowerCaps, sizeof(PowerCaps));
return FALSE;
return PowerCaps.SystemS1 && PowerCaps.SystemS2 && PowerCaps.SystemS3;
}
BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)