mirror of
https://github.com/reactos/reactos.git
synced 2026-06-21 20:22:48 +08:00
Add useful macros, similar to the powrprof.dll `IsPwr*()` functions, but that are suitable when one has a `SYSTEM_POWER_CAPABILITIES` structure initialized from `NtPowerInformation(SystemPowerCapabilities)`. - `IS_PWR_SUSPEND_ALLOWED()`, equivalent to `IsPwrSuspendAllowed()`, indicating whether any of the S1, S2, S3 sleep states are supported. - `IS_PWR_HIBERNATE_ALLOWED()`, equivalent to `IsPwrHibernateAllowed()`, indicating whether the S4 sleep state is supported and the hibernation file is present. - `IS_PWR_POWEROFF_ALLOWED()`, equivalent to `IsPwrShutdownAllowed()`, indicating whether the S5 "soft-off" state is supported.