title | description | keywords | ms.date | ||||||
---|---|---|---|---|---|---|---|---|---|
Testing a WDF Driver (KMDF or UMDF) |
This topic describes recommendations for testing a Kernel-Mode Driver Framework (KMDF) or User-Mode Driver Framework (UMDF) version 2 driver. |
|
04/20/2017 |
This topic describes recommendations for testing a Kernel-Mode Driver Framework (KMDF) or User-Mode Driver Framework (UMDF) version 2 driver.
When testing your driver, you should:
-
Set the VerifierOn registry value to enable the framework's driver verification features. For more information about VerifierOn and other registry values that you can use when you are debugging and testing your driver, see Using KMDF Verifier and Using UMDF Verifier. For information about an application that helps you to use the framework's driver verification features, see WDF Verifier Control Application.
-
For both UMDF versions 1 and 2, enable [Application Verifier (AppVerif.exe)] on Wudfhost.exe. You can download the AppVerif tool as part of Download Debugging Tools for Windows. For example:
appverif -enable handles locks heaps memory exceptions TLS -for WudfHost.exe
Doing so automatically turns on the framework's built-in verification.
-
Use the driver verification tools that are described in this documentation. For more information about these important tools, see:
To thoroughly test your driver, you must use both the framework's driver verification features and the driver verification tools.