Commit 95fa6fbb authored by Michael Hoffman's avatar Michael Hoffman Committed by Alexandre Julliard

powrprof: Implement IsPwrHibernateAllowed.

parent c189b5f9
...@@ -207,11 +207,9 @@ BOOLEAN WINAPI IsAdminOverrideActive(PADMINISTRATOR_POWER_POLICY p) ...@@ -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)
......
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