typedef struct _POWER_STATUS {
BYTE PS_AC_Line_Status;
BYTE PS_Battery_Status;
BYTE PS_Battery_Flag;
BYTE PS_Battery_Life_Percentage;
WORD PS_Battery_Life_Time
} POWER_STATUS;
Contains information about the APM BIOS power status. With the exception of the BatteryLifeTime parameter, this information is structured identically to that specified in the APM 1.1 specification.
When PS_AC_Line_Status is 02h (on backup power), the power status values apply to the system's backup battery.
Since PS_Battery_Flag and PS_Battery_Life_Time are not supported by an APM 1.0 BIOS, VPOWERD returns 0FFh and 0FFFFFFFFh in these fields when connected to an APM 1.0 BIOS. The PS_Battery_Flag value should be used preferentially over the PS_Battery_Status value. The PS_Battery_Status specifies only the most recently changed status item since the last call to the BIOS power status function and therefore is supported only for backward compatibility with older systems not capable of reporting the PS_Battery_Flag value.