IoSetCompletionRoutineNonPnpDriver rule (wdm)
The IoSetCompletionRoutineEx routine avoids the actual driver image unloading after the driver has been marked for unload. This applies to non-PnP drivers since they are not notified by the PnP manager when a remove or unload is happening.
How to test
|At compile time|
Run Static Driver Verifier and specify the IoSetCompletionRoutineNonPnpDriver rule.Use the following steps to run an analysis of your code:
For more information, see Using Static Driver Verifier to Find Defects in Drivers.