OidProcessing rule set (NDIS)

Use these rules to verify that your driver correctly processes OID requests.

In this section

Topic Description

DoubleComplete

The DoubleComplete rule specifies that NDIS drivers must not complete an object identifier (OID) request multiple times.

DoubleCompleteWorkItem

The DoubleCompleteWorkItem rule specifies that NDIS drivers must not complete an OID request multiple times when the completion is deferred in a work item.

NdisMNetPnPEventInOIDRequest

This rule checks that NdisMNetPnPEvent is not called in the context of an OID request.

To select the OidProcessing rule set

  1. Select your driver project (.vcxProj) in Microsoft Visual Studio. From the Driver menu, click Launch Static Driver Verifier….

  2. Click the Rules tab. Under Rule Sets, select OidProcessing.

    To select the default rule set from a Visual Studio developer command prompt window, specify OidProcessing.sdv with the /check option. For example:

    msbuild /t:sdv /p:Inputs="/check:OidProcessing.sdv" mydriver.VcxProj /p:Configuration="Win8 Release" /p:Platform=Win32
    

    For more information, see Using Static Driver Verifier to Find Defects in Drivers and Static Driver Verifier commands (MSBuild).