Share via


BatteryDrvrGetStatus

This function returns the status of the main and backup batteries. This information is returned in a SYSTEM_POWER_STATUS_EX2 structure.

BOOL BatteryDrvrGetStatus (
PSYSTEM_POWER_STATUS_EX2 pstatus,
PBOOL pfBatteriesChangedSinceLastCall );

Parameters

  • pstatus
    Pointer to a SYSTEM_POWER_STATUS_EX2 structure.
  • pfBatteriesChangedSinceLastCall
    Pointer to a Boolean value that is returned to the calling process. This value is set to TRUE when the physical battery has changed since the last call to this function.

Return Values

TRUE indicates success; FALSE indicates failure.

Remarks

Implement this Graphics, Windowing, and Events Subsystem (GWES)-layer function as part of porting native device drivers.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.10 and later Battery.h    

See Also

SYSTEM_POWER_STATUS_EX2, BatteryGetLifeTimeInfo

 Last updated on Friday, April 02, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.