Partager via


CeGetSystemPowerStatusEx (RAPI) (Windows CE 5.0)

Send Feedback

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.

The RAPI version is CeGetSystemPowerStatusEx for Windows CE 2.0 and later.

BOOLCeGetSystemPowerStatusEx(PSYSTEM_POWER_STATUS_EXpstatus, BOOLfUpdate);

Parameters

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

Return Values

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

Remarks

The CeGetSystemPowerStatusEx function is not supported for emulation.

When working with RAPI for Windows CE 1.0 and 1.01, use the PegGetSystemPowerStatusEx function.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Rapi.h.
Link Library: Rapi.lib.

See Also

RAPI Functions | SYSTEM_POWER_STATUS_EX

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.