IoBuildDeviceIoControlSetEvent rule (wdm)

The IoBuildDeviceIoControlSetEvent rule specifies that a driver that calls IoBuildDeviceIoControlRequest must not call KeSetEvent if the driver supplies a pointer to a caller-allocated and initialized event object. The KeSetEvent does not need to be called by the driver for this IRP.

Driver modelWDM

How to test

At compile time

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




Send comments about this topic to Microsoft