Question kernel32.dll BatteryLifeTime <-- what format is it?

ExEdzy

Active member
Joined
Nov 25, 2010
Messages
37
Programming Experience
3-5
Hello there :)
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?
 
Sorry, but the link you gave me.. i cant get it working.. i meen i cant get the application to work :(

Edited: Sorry, i found everything i need, tnx man :)
 
Last edited:
Back
Top