Bewerken

Delen via


WmiComplete rule (wdm)

The WmiComplete rule specifies that when processing a WMI minor IRP, the driver calls IoCompleteRequest before returning from the DispatchSystemControl routine.

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.

Drivers that are not registered as WMI data providers must forward the WMI request to the next lower driver. To verify this action, use the WmiForward rule.

Driver model: WDM

How to test

At compile time

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

IoCompleteRequest WmiSystemControl

See also

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