wincerapi.CeGetSystemPowerStatusEx

tuple = CeGetSystemPowerStatusEx()

Retrieves the power status of the CE device.

Return Value

The result is a tuple of (ACLineStatus, BatteryFlag, BatteryLifePercent, BatteryLifeTime, BatteryFullLifeTime, BackupBatteryFlag, BackupBatteryLifePercent, BackupBatteryLifeTime, BackupBatteryLifeTime);