Source code of Windows XP (NT5)
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.

62 lines
2.6 KiB

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-
  4. 1252">
  5. <META NAME="Generator" CONTENT="Microsoft Word 97">
  6. <TITLE>Hidbatt</TITLE>
  7. </HEAD>
  8. <BODY LINK="#0000ff">
  9. <FONT FACE="Verdana" SIZE=5><H2> Hidbatt </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 is a battery class
  15. driver for devices using the HID power class specification. The driver reads this type of device and
  16. prevents a Microsoft&#174; Windows&#174; battery class device to the system so that it can be treated like any other battery in the system.<P>
  17. The driver works on x86 and Alpha platforms, is 64-bit compliant, and supports Plug and Play.<p>
  18. <H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana"
  19. SIZE=2><P>
  20. Type <b>build</b> from the
  21. \\Ntddk\Src\Wdm\Acpi\Hidbatt directory. A successful build
  22. creates Hidbatt.sys.<p>
  23. <H3>CODE TOUR</H3>
  24. <H4>File Manifest</H4>
  25. </FONT><U><PRE>File&#9;&#9;Description
  26. </U>
  27. Cbattery.cpp&#9;Reads battery information from HID
  28. Cbattery.h&#9;#defines, et cetera, to allow reading battery information from HID
  29. Ckhid.cpp&#9;Basic communication with HID
  30. Ckhid.h &#9;Header for Ckhid.cpp
  31. Ckutils.cpp&#9;Miscellaneous functions
  32. Ckutils.h&#9;Miscellaneous header
  33. Devext.cpp&#9;Device extention initialization
  34. Devext.h &#9;Device extension definition
  35. Drvclass.cpp&#9;Miscellaneous functions used by driver
  36. Drvclass.h&#9;Header for Drvclass.cpp
  37. Hid.h&#9;&#9;C++ class for dealing with HID device
  38. Hidbatt.cpp&#9;Driver entry and major dispatch routines
  39. Hidbatt.h &#9;Header for hidbatt.cpp
  40. Hidbatt.rc&#9;Resource file
  41. Hidbattio.cpp&#9;Battery class interface functions
  42. Hidbattpnp.cpp &#9;Routines called from Plug and Play dispatch routine
  43. Hidpddi.h&#9;#Include header files
  44. Ntddk.h&#9;defines types, constants, and functions that are exposed to device drivers.
  45. Batclass.h&#9;header for wdm kernel client interface between HID class and power class
  46. Hidclass.h&#9;Definitions that are common to clients of the HID class driver.
  47. Wdm.h&#9; defines WDM types, constants, and functions that are exposed to device drivers
  48. <P>
  49. </FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
  50. <TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
  51. <TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
  52. <P></TD>
  53. </TR>
  54. </TABLE>
  55. <FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
  56. </HTML>