Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 806 Bytes

IsPwrSuspendAllowed.md

File metadata and controls

37 lines (24 loc) · 806 Bytes

Home

Function name : IsPwrSuspendAllowed

Group: Power Management - Library: powrprof


Determines whether the computer supports the sleep states.


Code examples:

How to suspend or hibernate your system

Declaration:

BOOLEAN IsPwrSuspendAllowed(void);  

FoxPro declaration:

DECLARE INTEGER IsPwrSuspendAllowed IN powrprof  

Parameters:

This function has no parameters.


Return value:

If the computer supports the sleep states (S1, S2, and S3), the function returns TRUE. Otherwise, the function returns FALSE (0).