Plug and Play Driver Test
Note Starting with the WDK for Windows 8, the Plug and Play Driver test is included in the Device Fundamentals Tests as a part of the PnP Tests (Device Fundamentals). Plug and Play Driver test is no longer available as a stand-alone test. For information about running the PnP Tests (Device Fundamentals), see How to How to test a driver at runtime using Visual Studio and How to select and configure the Device Fundamentals tests.
The Plug and Play Driver Test (Pnpdtest.exe) exercises various Plug and Play (PnP)-related code paths in the driver and user-mode components. You should run the Plug and Play Driver test with Driver Verifier enabled. If you use this test with Driver Verifier, you can feel more confident that your code is performing properly. This tool is for use on Windows Vista, Windows Server 2003, Windows XP, and Windows 2000.
This tool forces a driver to handle almost all of the PnP IRPs; however, there are three areas that are stressed specifically: Removal, Rebalance, and Surprise Removal. The test provides a mechanism to test each of these separately, or to test them all together (that is, as a stress test). This PnP testing is accomplished by using a combination of user-mode API calls (through the test application) and kernel-mode API calls (through an upper filter driver).
Build date: 9/28/2012