HidMiniDriver failing IRP_MN_SURPRISE_REMOVAL on win7 using HCK RRS feed

  • Question

  • Hi,

    I am having a problem with a driver which we are putting through testing on HCK 8.0
    This driver previously passed on the Windows 7 DTM setup, and has been in use by customers for many years.
    On our HCK test setup, the driver passes the tests on the Win8_64 and Win8_32 clients
    On our HCK test setup, the driver fails the tests on the Win7_64 and Win7_32 clients (more tests listed for win7)

    The failure message is this:

    WDTF_PNP : Result: Failed to receive IRP_MN_REMOVE_DEVICE after receiving IRP_MN_SURPRISE_REMOVAL. Ensure that there are no open handles or references to the test device (in user mode or in kernel mode) preventing IRP_MN_REMOVE_DEVICE from being sent. You may need to terminate any processes or services that may have open user mode handles to this device. ( 80004005 ).

    I'm not sure why the the timeout happens - I return from IRP_MN_SURPRISE_REMOVAL in my pnp routine.

    I saw in another post that it may possible to get an 'exception filter' for this failure.

    Do I need to pay for support to get this filter?


    Thursday, July 25, 2013 5:21 PM

All replies