powrprof: Implement IsPwrHibernateAllowed.

This commit is contained in:
Michael Hoffman 2008-04-16 17:59:01 -04:00 committed by Alexandre Julliard
parent c189b5f9e2
commit 95fa6fbb57
1 changed files with 1 additions and 3 deletions

View File

@ -207,11 +207,9 @@ BOOLEAN WINAPI IsAdminOverrideActive(PADMINISTRATOR_POWER_POLICY p)
BOOLEAN WINAPI IsPwrHibernateAllowed(VOID) BOOLEAN WINAPI IsPwrHibernateAllowed(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.SystemS4 && PowerCaps.HiberFilePresent;
} }
BOOLEAN WINAPI IsPwrShutdownAllowed(VOID) BOOLEAN WINAPI IsPwrShutdownAllowed(VOID)