public static class Kernel32.SYSTEM_POWER_STATUS
extends com.sun.jna.Structure
http://msdn2.microsoft.com/en-us/library/aa373232.aspx| Modifier and Type | Field and Description |
|---|---|
byte |
ACLineStatus |
byte |
BatteryFlag |
int |
BatteryFullLifeTime |
byte |
BatteryLifePercent |
int |
BatteryLifeTime |
byte |
Reserved1 |
| Constructor and Description |
|---|
SYSTEM_POWER_STATUS() |
| Modifier and Type | Method and Description |
|---|---|
String |
getACLineStatusString()
The AC power status
|
String |
getBatteryFlagString()
The battery charge status
|
String |
getBatteryFullLifeTime()
The number of seconds of battery life when at full charge
|
String |
getBatteryLifePercent()
The percentage of full battery charge remaining
|
int |
getBatteryLifePercentInt()
Gets the battery life in % as int
|
String |
getBatteryLifeTime()
The number of seconds of battery life remaining
|
protected List<String> |
getFieldOrder() |
boolean |
hasBattery()
Checks if the current system has a battery
|
String |
toString() |
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField, writeFieldpublic byte ACLineStatus
public byte BatteryFlag
public byte BatteryLifePercent
public byte Reserved1
public int BatteryLifeTime
public int BatteryFullLifeTime
protected List<String> getFieldOrder()
getFieldOrder in class com.sun.jna.Structurepublic String getACLineStatusString()
public String getBatteryFlagString()
public int getBatteryLifePercentInt()
public boolean hasBattery()
public String getBatteryLifePercent()
public String getBatteryLifeTime()
public String getBatteryFullLifeTime()
public String toString()
toString in class com.sun.jna.StructureCopyright © 2018. All rights reserved.