Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SYSTEM_POWER_STATUS (Structures)
 
.
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 ACLineStatus As Byte
    Public BatteryFlag As Byte
    Public BatteryLifePercent As Byte
    Public Reserved1 As Byte
    Public BatteryLifeTime As Integer
    Public BatteryFullLifeTime As Integer
    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

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions