Sample Kernel-Mode Drivers
The WDK provides various sample kernel-mode drivers. After you have installed the WDK, the src\general subdirectory contains sample driver code that is applicable to all kernel-mode drivers. These samples include the following:
Provides sample code for a set of drivers that conform to the Windows Driver Model (WDM). This sample also includes sample installation software.
Demonstrates how drivers should support I/O control codes.
Demonstrates techniques that kernel-mode drivers can use to notify applications of hardware events, if the application requests notification. One technique uses event objects and the other relies on queuing the notification request until an event occurs.
Demonstrates the use of cancel-safe IRP queues.
Shows how to use WPP software tracing.
Other subdirectories of the \src directory contain sample code for kernel-mode drivers for various types of hardware.
Build date: 11/16/2013