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

CeGetSystemPowerStatusEx (RAPI)

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function retrieves the power status of the system on a remote Windows Embedded CE–based device. 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 CeGetSystemPowerStatusEx(
  PSYSTEM_POWER_STATUS_EX pstatus, 
  BOOL fUpdate 
);
pstatus

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

fUpdate

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

Nonzero indicates success. Zero indicates failure.

The CeGetSystemPowerStatusEx function is not supported for emulation.

Headerrapi.h
Libraryrapi.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2000 and later, Smartphone 2002 and later
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.