[StructLayout(LayoutKind.Sequential)]
internal class SYSTEM_POWER_STATUS_EX
{
public byte ACLineStatus = 0;
public byte BatteryFlag = 0;
public byte BatteryLifePercent = 0;
public byte Reserved1 = 0;
public int BatteryLifeTime = 0;
public int BatteryFullLifeTime = 0;
public byte Reserved2 = 0;
public byte BackupBatteryFlag = 0;
public byte BackupBatteryLifePercent = 0;
public byte Reserved3 = 0;
public int BackupBatteryLifeTime = 0;
public int BackupBatteryFullLifeTime = 0;
}
Structure SYSTEM_POWER_STATUS_EX
Public TODO
End Structure
None.
AC power status. It is one of the following values. Value Description
Offline = 0
Online = 1
Unknown status = 255
All other values are reserved.
Battery charge status. It can be a combination of the following values:
Percentage of full battery charge remaining. This member can be a value in the range 0 to 100, or 255 if status is unknown. All other values are reserved.
Reserved; set to zero.
Number of seconds of battery life remaining, or 0xFFFFFFFF if remaining seconds are unknown.
Number of seconds of battery life when at full charge, or 0xFFFFFFFF if full lifetime is unknown.
Reserved; set to zero.
Backup battery charge status. It can be a combination of the following values:
Percentage of full backup battery charge remaining. Must be in the range 0 to 100, or BATTERY_PERCENTAGE_UNKNOWN.
Reserved; set to zero
Number of seconds of backup battery life remaining, or BATTERY_LIFE_UNKNOWN if remaining seconds are unknown.
Number of seconds of backup battery life when at full charge, or BATTERY_LIFE_UNKNOWN if full lifetime is unknown.