The GetSystemPowerStatusEx function retrieves the power status of the system. The status indicates whether the system is running on AC or DC power, whether or not the batteries are currently charging, and the remaining life of main and backup batteries.
BOOL GetSystemPowerStatusEx(PSYSTEM_POWER_STATUS_EX pstatus, BOOL fUpdate);
Header file: | Winbase.h |
Module: | Gwes |
Platforms: | H/PC |
Versions: | 1.0 and later |
This function returns TRUE if successful, otherwise FALSE.
The GetSystemPowerStatusEx function is not supported for emulation.