[This is preliminary documentation and subject to change.]
This keyboard class driver is compliant with Plug and Play on Windows® 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.
In addition to Plug and Play, the driver supports legacy Windows NT® 4.0-style input devices, Power Management, and all other Windows 2000 drivers.
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.
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.
BUILDING THE SAMPLE
CODE TOUR
File Manifest
File Description
Kbdclass.htm The documentation for this sample (this file).
Sources The generic file for building this code sample.
Kbdclass.c The complete driver (quining, Plug and Play, Power)
Kbdclass.h Prototypes and definitions
Kbdclass.rc Standard resource file (listing name and version number)
Kbdlog.mc List of standard error-log messages for the keyboard class driver
© 1999 Microsoft Corporation