AddDevice rule (wdm)
This rule applies only to drivers that have an AddDevice routine.
This rule does not verify that the driver calls IoCreateDevice or IoAttachDeviceToDeviceStack and does not monitor calls to IoCreateDeviceSecure.
Driver model: WDM
How to test
|At compile time|
Run Static Driver Verifier and specify the AddDevice rule.Use the following steps to run an analysis of your code:
For more information, see Using Static Driver Verifier to Find Defects in Drivers.