WmiForward rule (wdm)

The WmiForward rule specifies that the driver must forward WMI minor IRPs when forwarding is required.

Specifically, when the driver calls WmiSystemControl and the value of the IrpDisposition parameter is IrpForward, the driver must call IoCallDriver or PoCallDriver to forward the IRP before returning from the dispatch routine.

This rule does not apply to bus drivers.

A WMI minor IRP is an IRP_MJ_SYSTEM_CONTROL request with a WMI minor function code.

For more information about processing WMI minor IRPs, see WMI Requirements for WDM Drivers, Handling WMI Requests, Windows Management Instrumentation Routines, and WMI Library Support Routines.

Driver model: WDM

How to test

At compile time

Run Static Driver Verifier and specify the WmiForward 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

IoAcquireRemoveLock IoCallDriver PoCallDriver

See also

WMI Requirements for WDM Drivers Handling WMI Requests WMI Library Support Routines