Redigera

Dela via


PnpRemove rule (wdm)

The PnpRemove rule specifies that the driver cannot complete IRP_MN_SURPRISE_REMOVAL, IRP_MN_CANCEL_REMOVE_DEVICE, IRP_MN_CANCEL_STOP_DEVICE, or IRP_MN_REMOVE_DEVICE requests with a failure.

Note

In Windows 8.1, you can test the PnpRemove rule using Driver Verifier. The rule is not currently available for use with Static Driver Verifier.

Driver model: WDM

Bug check(s) found with this rule: Bug Check 0xC4: DRIVER_VERIFIER_DETECTED_VIOLATION (0x00043006)

How to test

At run time

Run Driver Verifier and select the DDI compliance checking option.