SMBBATT

[This is preliminary documentation and subject to change.]

SUMMARY

This kernel mode driver is the system supplied SMBus Smart Battery Subsystem Miniport driver.  This driver serves as an example of both a battery miniclass driver, and as an example of a driver to access a SMBus device. 

BUILDING THE SAMPLE

To build the driver, type build in the \\Ntddk\Src\Wdm\Acpi\Smbbatt directory. A successful build produces Smbbatt.sys.  The necessary Inf file is battery.inf and is located in the %WINDIR%\inf directory.

CODE TOUR

File Manifest

File		Description

Smbbattp.h	Header file for smbbatt.c
Pnppower.c	Plug and play and power management IRP dispatch routines
Smbbatt.c	Main module for driver entry, IOCTL handler, etc.
Smbmisc.c	SMBus handler functions
Smbwmi.c	WMI functions
Smbbatt.rc	Resource file for smbbatt.sys driver
Makefile	Indirects to the real makefile
Sources		Dependency information for compiling 
Smbbatt.htm	The documentation for this sample (this file)
 

Top of page

© 2001 Microsoft Corporation