BATTERY_STATUS
This structure contains information on the status of the Auto PC batteries.
Syntax
typedef struct tagBATTERY_STATUS{
DWORD ACLineStatus;
DWORD BatteryFlag;
DWORD BatteryLifePercent;
DWORD_t BatteryLifeTime;
DWORD BatteryFullLifeTime;
} PBATTERY_STATUS;
Members
- ACLineStatue
- Status of the alternating current (AC) power line. Currently, the only value supported is AC_LINE_UNKNOWN.
- BatteryFlag
- Indicates whether or not a battery is present. It is one of the following values:
- BATTERY_FLAG_HIGH
- The battery is present.
- BATTERY_FLAG_NO_BATTERY
- The battery is absent.
- BatteryLifePercent
- Percentage of full battery charge remaining. This value is equal to the amount of battery life remaining divided by the lifetime of a full battery, expressed as a percentage.. Currently, the only value supported is BATTERY_PERCENTAGE_UNKNOWN.
- BatteryLifeTime
- Battery life remaining, in seconds.. Currently, the only value supported is BATTERY_LIFE_UNKNOWN.
- BatteryFullLifeTime
- Lifetime of a full battery, in seconds. Currently, the only value supported is BATTERY_LIFE_UNKNOWN.