Hello there 
Searching about kernel32.dll and battery functions in it, i came across some interesting code:
The full decleration is:
What i dont understand is, what mesurment do the "BatteryLifeTime As System.UInt32" is in?
I meen, is the Battery life Time in seconds or hours.. Or something else, so how can i convert it to something i can use..
Any ideas, or help?
Searching about kernel32.dll and battery functions in it, i came across some interesting code:
VB.NET:
Public BatteryLifeTime As System.UInt32
The full decleration is:
VB.NET:
Private Declare Auto Function GetSystemPowerStatus Lib "kernel32.dll" ( _
ByRef lpSystemPowerStatus As SYSTEM_POWER_STATUS) _
As Integer
Private Structure SYSTEM_POWER_STATUS
Public BatteryLifeTime As System.UInt32
What i dont understand is, what mesurment do the "BatteryLifeTime As System.UInt32" is in?
I meen, is the Battery life Time in seconds or hours.. Or something else, so how can i convert it to something i can use..
Any ideas, or help?