Help Center

AfxBatteryLifePercentfunction

Retrieves the percentage of full battery charge remaining.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxBatteryLifePercent () AS UBYTE

Return value

This member can be a value in the range 0 to 100, or 255 if status is unknown.

Description

The percentage of full battery charge remaining.

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:5096
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures