IRAPISession::CeGetSystemPowerStatusEx
This method retrieves the power status of the system on a remote Microsoft® Windows® 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
);
Parameters
- pstatus
[out] Pointer to the SYSTEM_POWER_STATUS_EX structure receiving the power status information. - fUpdate
[in] If this Boolean value is set to TRUE, IRAPISession::CeGetSystemPowerStatusEx gets the latest information from the device driver; otherwise it retrieves cached information that may be out-of-date by several seconds.
Return Values
Nonzero indicates success. Zero indicates failure.
Remarks
The IRAPISession::CeGetSystemPowerStatusEx method is not supported for emulation.
Requirements
OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib
See Also
IRAPISession::IUnknown | SYSTEM_POWER_STATUS_EX
Send Feedback on this topic to the authors