Rules for WDM Drivers

In this section

TopicDescription

Default rule set (WDM)

The Default rule set (Default.sdv) specifies the recommended sets of rules to use when you analyze your driver.

DDI usage rule set (WDM)

Use these rules to verify that your driver correctly uses WDM DDIs correctly.

IrpPending rule set (WDM)

Use these rules to verify that your driver correctly pends I/O request packets (IRP).

IrpProcessing rule set (WDM)

Use these rules to verify that your driver correctly processes I/O request packets (IRP).

IrpTracking rule set (WDM)

Use these rules to verify that your driver correctly tracks I/O request packets (IRP) so that the device is not removed while IRPs are outstanding.

Irql rule set (WDM)

Use these rules to verify that your driver makes DDI calls at the required IRQL.

A driver that does not follow the IRQL rules can cause serious problems during operation that can lead to deadlock conditions or computer crashes.

LocalIrpProcessing rule set (WDM)

Use these rules to verify that your driver correctly handles I/O request packets (IRP) that are created by the driver.

Locking rule set (WDM)

Use these rules to verify that your driver correctly manages shared resources.

Miscellaneous rule set (WDM)

Use these rules to verify that your driver correctly follows a general set of requirements for the proper handling of registry keys, strings and device object pointers.

Warning rule set (WDM)

Use these rules to verify that your driver can correctly processes IRPs in various contexts and follows Microsoft recommended best practices.

 

 

 

Send comments about this topic to Microsoft

Show: