Group: Power Management - Library: powrprof
How to suspend or hibernate your system
BOOLEAN IsPwrSuspendAllowed(void);
DECLARE INTEGER IsPwrSuspendAllowed IN powrprof
This function has no parameters.
If the computer supports the sleep states (S1, S2, and S3), the function returns TRUE. Otherwise, the function returns FALSE (0).