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
Requirement | Value |
---|---|
Header | batclass.h (include Batclass.h) |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for