BATTERY_WMI_STATUS structure (batclass.h)

Defines battery status information.

Syntax

typedef struct _BATTERY_WMI_STATUS {
  ULONG   Tag;
  ULONG   RemainingCapacity;
  LONG    ChargeRate;
  LONG    DischargeRate;
  ULONG   Voltage;
  BOOLEAN PowerOnline;
  BOOLEAN Charging;
  BOOLEAN Discharging;
  BOOLEAN Critical;
} BATTERY_WMI_STATUS, *PBATTERY_WMI_STATUS;

Members

Tag

A tag that identifies a specific battery.

RemainingCapacity

The remaining capacity of the battery.

ChargeRate

The charge rate of the battery.

DischargeRate

The discharge rate of the battery.

Voltage

The voltage of the battery.

PowerOnline

Whether there is power online.

Charging

Whether the battery is charging.

Discharging

Whether the battery is discharging.

Critical

Whether the power level is critical.

Requirements

   
Header batclass.h (include Batclass.h)