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:

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 technique 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.

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft