Declaration
Visual C#:
int GetBatteryLevel();
Visual C++:
long GetBatteryLevel();
Visual Basic:
Private Sub GetBatteryLevel As Integer
Delphi:
function GetBatteryLevel : Integer;
Return Value
|
< 0 |
|
|
0-100 |
Percentage of battery charge. |
|
101 |
Battery is charging. |
|
102 |
Using power supply. |
Remarks
Read the power supply status.
See Also