CeGetSystemPowerStatusEx (RAPI) (Windows Embedded CE 6.0)

1/6/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.

Syntax

BOOL CeGetSystemPowerStatusEx(
  PSYSTEM_POWER_STATUS_EX pstatus, 
  BOOL fUpdate 
);

Parameters

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

Return Value

Nonzero indicates success. Zero indicates failure.

Remarks

The CeGetSystemPowerStatusEx function is not supported for emulation.

Requirements

Header rapi.h
Library rapi.lib
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

RAPI Functions
SYSTEM_POWER_STATUS_EX (RAPI)