Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

IsPwrSuspendAllowed function

[IsPwrSuspendAllowed is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Applications written for Windows Vista and later should use GetPwrCapabilities instead.]

Determines whether the computer supports the sleep states.

Syntax


BOOLEAN WINAPI IsPwrSuspendAllowed(void);

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.

Remarks

This information is also available through the CallNtPowerInformation function. Check the SystemS1, SystemS2, and SystemS3 members of the SYSTEM_POWER_CAPABILITIES structure.

For more information on using PowrProf.h, see Power Schemes.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

PowrProf.h

Library

PowrProf.lib

DLL

PowrProf.dll

See also

Power Management Functions
CallNtPowerInformation
SYSTEM_POWER_CAPABILITIES

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.