LowerDriverReturn rule (wdm)

The LowerDriverReturn rule specifies that after using PoCallDriver or IoCallDriver to call a lower driver, the driver saves the return status from the call and passes the return status that it received to the dispatch routine.

These conditions are not applied if the driver calls IoCompleteRequest or IoMarkIrpPending.

Driver modelWDM

How to test

At compile time

Run Static Driver Verifier and specify the LowerDriverReturn rule.

Use the following steps to run an analysis of your code:
  1. Prepare your code (use role type declarations).
  2. Run Static Driver Verifier.
  3. View and analyze the results.

For more information, see Using Static Driver Verifier to Find Defects in Drivers.

Applies to

IoCallDriver
IoMarkIrpPending
IoSetCompletionRoutine
IoSetCompletionRoutineEx
IoSetDeviceInterfaceState
IoWMIRegistrationControl
KeWaitForSingleObject
PoCallDriver

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft