Muokkaa

Jaa


Writing Battery Miniclass Drivers

A battery typically has a pair of drivers: the generic battery class driver that Microsoft provides, and a miniclass driver written specifically for that individual type of battery.

The class driver defines the overall functionality of the batteries in the system and interacts with the power manager.

The miniclass driver handles device-specific functions such as adding and removing a battery, and keeping track of its capacity and charge. The miniclass driver exports routines that the class driver calls to get information about the devices it controls.

Information about writing battery miniclass drivers is organized as follows:

Overview of System Battery Management

Interaction of Battery Class and Miniclass Drivers

Supplying Required Battery Miniclass Driver Functionality

Battery miniclass driver: DriverEntry routine

AddDevice routine for battery miniclass drivers

Battery miniclass driver's DispatchDeviceControl routine

DispatchSystemControl Routine of a Battery Miniclass Driver

Responding to Battery Class Driver Queries

Supplying Battery Device Notification

Unload Routine of a Battery Miniclass Driver

Installing a Battery Driver