Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.9 KiB

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-
  4. 1252">
  5. <META NAME="Generator" CONTENT="Microsoft FrontPage 5.0">
  6. <TITLE>SMBBATT</TITLE>
  7. </HEAD>
  8. <BODY LINK="#0000ff">
  9. <FONT FACE="Verdana" SIZE=5><H2>SMBBATT</H2>
  10. </FONT><FONT FACE="Verdana" SIZE=2>
  11. <P><span style="color:#FF0000;font-size:10pt;font-family:Arial">[This is preliminary
  12. documentation and subject to change.]</span></P>
  13. <H3>SUMMARY</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  14. This kernel mode driver is the system supplied SMBus Smart Battery Subsystem
  15. Miniport driver.&nbsp; This driver serves as an example of both a battery
  16. miniclass driver, and as an example of a driver to access a SMBus device.&nbsp;
  17. <H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana"
  18. SIZE=2><P>
  19. To build the driver, type <B>build</B> in the \\Ntddk\Src\Wdm\Acpi\Smbbatt directory. A successful build produces
  20. Smbbatt.sys.&nbsp; The necessary Inf file is battery.inf and is located in the %WINDIR%\inf
  21. directory.<H3>CODE TOUR</H3>
  22. <H4>File Manifest</H4>
  23. </FONT><U><PRE>File&#9;&#9;Description
  24. </U>
  25. Smbbattp.h Header file for smbbatt.c
  26. Pnppower.c&#9;Plug and play and power management IRP dispatch routines
  27. Smbbatt.c Main module for driver entry, IOCTL handler, etc.
  28. Smbmisc.c SMBus handler functions
  29. Smbwmi.c WMI functions
  30. Smbbatt.rc Resource file for smbbatt.sys driver
  31. Makefile&#9;Indirects to the real makefile
  32. Sources&#9; Dependency information for compiling
  33. Smbbatt.htm&#9;The documentation for this sample (this file)<PRE>&nbsp;<P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
  34. <TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
  35. <TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
  36. <P></TD>
  37. </TR>
  38. </TABLE>
  39. <FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 2001 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
  40. </HTML>