Battery Function Reference

sBatteryPercent

Battery Function Reference

This function retrieves the device's battery power level.

Declare Function sBatteryPercent Lib "SapphireBattery.dll" (ByVal lLicence As Long) As Long

Parameters

  lLicence
    A long specifying the Sapphire Battery licence number.

Return Values

  Returns a long value specifying the percentage of the battery power between 0 and 100. If the percentage is 255, the battery is on charge.