Previous Next

Sample Kernel-Mode Drivers

The DDK provides various sample kernel-mode drivers. After you have installed the DDK, the src\general subdirectory contains sample driver code that is applicable to all kernel-mode drivers.

toaster
Provides sample code for a set of drivers that conform to the Windows Driver Model (WDM). This sample also includes sample installation software.
ioctl
Demonstrates how drivers should support I/O control codes.
event
Demonstrates techniques that kernel-mode drivers can use to notify applications of hardware events, if the application requests notification. One method uses event objects and the other relies on queuing the notification request until an event occurs.
cancel
Demonstrates the use of cancel-safe IRP queues.
tracedrv
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.