NdisOpenConfigurationEx rule (ndis)

This rule checks that NdisOpenConfigurationEx and NdisCloseConfiguration are called in alternate order. The ultimate goal is to make sure that configuration handles are closed when MiniportHaltEx exits.

The rule uses three different states. The state changes when a configuration is opened or closed. If a configuration handle is still open when the MiniportHaltEx exits, a defect is reported.

Driver modelNDIS

How to test

At compile time

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

NdisCloseConfiguration
NdisOpenConfigurationEx

 

 

Send comments about this topic to Microsoft

Show: