powrprof: Implement IsPwrSuspendAllowed.
This commit is contained in:
parent
be59368dd1
commit
1cfaa91570
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue