Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Windows Mobile 6.5
A version of this page is also available for

This 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.

A remote application interface (RAPI) version of this function exists, and it is called CeGetSystemPowerStatusEx (RAPI).

BOOL GetSystemPowerStatusEx(
  BOOL fUpdate


[out] Pointer to the SYSTEM_POWER_STATUS_EX structure receiving the power status information.


[in] If this Boolean is set to TRUE, GetSystemPowerStatusEx gets the latest information from the device driver, otherwise it retrieves cached information that may be out-of-date by several seconds.

This function returns TRUE if successful; otherwise, it returns FALSE.

The GetSystemPowerStatusEx function is not supported for emulation.

Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

© 2015 Microsoft