Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[VB.NET]Check Battery Status

The one way to take the result is
Code
MsgBox(BatteryStatus.GetStatus.BatteryLifePercent)
The structure should have an attribute applied (for stability):

Code
<StructLayout(LayoutKind.Sequential)> _
Structre ...

BatteryFlags should have the Flags() attribute applied, as it is a flags enum:

Code
<Flags()> _
Enum BatteryFlags as Byte
...


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by HackooAug 29, 2018 12:49 AM 2 283 Aug 29, 2018 12:49 AM
Last Post: Sir-Teabag
[C#] by DotexeAug 5, 2017 04:23 PM 0 154 Aug 5, 2017 04:23 PM
Last Post: Dotexe
[.NET] by backtrackJun 22, 2015 11:05 AM 2 527 Jun 22, 2015 11:05 AM
Last Post: SIM-1456245