Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
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
- pstatus
-
[out] Pointer to the SYSTEM_POWER_STATUS_EXstructure receiving the power status information.
- fUpdate
-
[in] If this Boolean is set to TRUE, CeGetSystemPowerStatusExgets 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 CeGetSystemPowerStatusExfunction is not supported for emulation.
Requirements
Header | rapi.h |
Library | rapi.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Pocket PC 2000 and later, Smartphone 2002 and later |
See Also
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.