struct SYSTEM_POWER_STATUS
{
public ACLineStatus _ACLineStatus;
public BatteryFlag _BatteryFlag;
public Byte _BatteryLifePercent;
public Byte _Reserved1;
public Int32 _BatteryLifeTime;
public Int32 _BatteryFullLifeTime;
}
or
struct SYSTEM_POWER_STATUS
{
public byte ACLineStatus;
public byte BatteryFlag;
public byte BatteryLifePercent;
public byte Reserved1; // set to 0
public int BatteryLifeTime;
public int BatteryFullLifeTime;
}
Structure SYSTEM_POWER_STATUS
Public TODO
End Structure
None.
For information on how to get the SYSTEM_POWER_STATUS struct filled: http://www.pinvoke.net/default.aspx/kernel32/GetSystemPowerStatus.html