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.

43 lines
2.6 KiB

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
  4. <META NAME="Generator" CONTENT="Microsoft Word 97">
  5. <TITLE>KBDCLASS</TITLE>
  6. <META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
  7. </HEAD>
  8. <BODY TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff" leftmargin="8">
  9. <FONT FACE="Verdana"><H2><A NAME="MYSAMPLE">KBDCLASS</A> </H2> <P>
  10. <span style="color:#FF0000">[This is preliminary documentation and subject to change.]</span>
  11. <h3>SUMMARY</h3><P><FONT FACE="Verdana" SIZE=2><P>
  12. This keyboard class driver is compliant with Plug and Play on Windows&#174; 2000 and beyond. The behavior of the various routines is documented in the source code files. The driver works on both 32 and 64 bit platforms. <P>
  13. In addition to Plug and Play, the driver supports legacy Windows NT&#174; 4.0-style input devices, Power Management, and all other Windows 2000 drivers.<P>
  14. <h3>BUILDING THE SAMPLE</h3><P><FONT FACE="Verdana" SIZE=2><P>
  15. The files necessary to build the sample include Kbdclass.c, Kbdlass.h, Kbdlass.rc, Kbdlog.rc, the makefile, and the sources. Once built, the sample produces a keyboard class driver (Kbdclass.sys). One binary is produced. Both checked and free build are available and functional. KEYBOARD.INF (the inf required to load this driver) is a system INF.<P>
  16. This sample is the complete source code for the shipping keyboard class driver, which runs always on Windows XP systems. It is therefore always installed. To run a customized driver, rather than the one shipped by the build, you will need to replace it in the %Windir%\System32\Drivers directory. Please note that kbdclass.sys is a system driver and is protected by Windows File Protection.<P>
  17. <H3>CODE TOUR</H3>
  18. <H4>File Manifest</H4>
  19. </FONT><FONT FACE="Courier" SIZE=3><U><PRE>File&#9;&#9;Description
  20. </U>
  21. Kbdclass.htm&#9;The documentation for this sample (this file).
  22. Sources&#9; The generic file for building this code sample.
  23. Kbdclass.c&#9;The complete driver (quining, Plug and Play, Power)
  24. Kbdclass.h&#9;Prototypes and definitions
  25. Kbdclass.rc&#9;Standard resource file (listing name and version number)
  26. Kbdlog.mc&#9;List of standard error-log messages for the keyboard class driver
  27. </FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
  28. <TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
  29. <TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
  30. <P></TD>
  31. </TR>
  32. </TABLE>
  33. <FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
  34. </HTML>