Battery Devices Reference

Overview of the Battery Devices Reference technology.

To develop Battery Devices Reference, you need these headers:

For programming guidance for this technology, see:

Functions

Title Description
BatteryClassInitializeDevice The BatteryClassInitializeDevice routine initializes a new battery device for the class driver.
BatteryClassIoctl BatteryClassIoctl handles system-defined battery IOCTLs.
BatteryClassQueryWmiDataBlock The BatteryClassQueryWmiDataBlock routine is used by battery miniclass drivers inside their DpWmiQueryDataBlock routines to allow the battery class driver to process the WMI data block query requests it handles on behalf of the driver.
BatteryClassStatusNotify BatteryClassStatusNotify notifies the battery class driver of changes in battery status.
BatteryClassSystemControl The BatteryClassSystemControl routine processes WMI IRPs on behalf of a battery miniclass driver.
BatteryClassUnload BatteryClassUnload frees resources for a battery device that is no longer in use.
BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK BatteryMiniDisableStatusNotify disables status notification for a battery device.
BCLASS_QUERY_INFORMATION_CALLBACK BatteryMiniQueryInformation returns information about the given battery device.
BCLASS_QUERY_STATUS_CALLBACK BatteryMiniQueryStatus returns status information about the given battery device.
BCLASS_QUERY_TAG_CALLBACK BatteryMiniQueryTag returns the current battery tag.
BCLASS_SET_INFORMATION_CALLBACK BatteryMiniSetInformation requests that a battery enter the charging or discharging state, or sets a critical bias value for the battery.
BCLASS_SET_STATUS_NOTIFY_CALLBACK BatteryMiniSetStatusNotify sets the battery capacity and power state levels at which the class driver requires notification.

Structures

Title Description
BATTERY_MINIPORT_INFO Battery miniclass drivers fill in this structure before calling the battery class driver's BatteryClassInitializeDevice routine.
BATTERY_MINIPORT_INFO_V1_1 Battery miniclass drivers fill in the BATTERY_MINIPORT_INFO_V1_1 structure before calling the battery class driver's BatteryClassInitializeDevice routine. BATTERY_MINIPORT_INFO_V1_1 is an updated version of the previous structure BATTERY_MINIPORT_INFO.
BATTERY_NOTIFY A battery miniclass driver receives a BATTERY_NOTIFY structure when its BatteryMiniSetStatusNotify routine is called.
BATTERY_TAG_CHANGE This structure is reserved for system use.
BATTERY_WMI_CYCLE_COUNT Defines information about number of charge cycles of a battery for use with the BatteryClassQueryWmiDataBlock function.
BATTERY_WMI_FULL_CHARGED_CAPACITY Defines information about the capacity of a battery for use with the BatteryClassQueryWmiDataBlock).
BATTERY_WMI_RUNTIME Defines information about the estimated runtime of a battery for use with the BatteryClassQueryWmiDataBlock function.
BATTERY_WMI_STATIC_DATA Defines static data about a battery.
BATTERY_WMI_STATUS Defines battery status information.
BATTERY_WMI_STATUS_CHANGE This structure is reserved for system use.
BATTERY_WMI_TEMPERATURE Defines information about temperature of the battery for use with the BatteryClassQueryWmiDataBlock function.