SYSTEM_POWER_STATUS (Structures)
Last changed: -199.123.78.97

.
Summary

C# Definition:

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;
}

VB Definition:

Structure SYSTEM_POWER_STATUS
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

For information on how to get the SYSTEM_POWER_STATUS struct filled: http://www.pinvoke.net/default.aspx/kernel32/GetSystemPowerStatus.html

Documentation