Uninstall root-enumerated driver

Hi,

I used the KMDF version of Vhidmini sample to write a virtual driver. The USB descriptor has both mouse and keyboard in the TLC. The driver is root-enumerated and I also used raw PDO to communicate with the driver.

Without using keyboard in TLC, I can uninstall driver simply by uninstall the root-enumerated driver, it will automatically remove the mouse driver.
But when I add keyboard to the TLC, I can’t uninstall the root-enumerated driver, but have to uninstall the keyboard first in order to remove the driver. Does anybody know why?

Thanks in advanced

What do the setup logs say when you enumerate a keyboard and try to unistall the parent? Or are you trying a disable? BTW, the keyboard stack does not allow disables.

d

sent from a phpne with no keynoard

-----Original Message-----
From: xxxxx@yahoo.com
Sent: May 28, 2010 3:15 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Uninstall root-enumerated driver

Hi,

I used the KMDF version of Vhidmini sample to write a virtual driver. The USB descriptor has both mouse and keyboard in the TLC. The driver is root-enumerated and I also used raw PDO to communicate with the driver.

Without using keyboard in TLC, I can uninstall driver simply by uninstall the root-enumerated driver, it will automatically remove the mouse driver.
But when I add keyboard to the TLC, I can’t uninstall the root-enumerated driver, but have to uninstall the keyboard first in order to remove the driver. Does anybody know why?

Thanks in advanced


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I use “devcon install” to install the driver. There’s nothing wrong happen, it return successful. And I can see all the devices in Device Manager, it works well too. Just when I when to uninstall by right click on root-enumerated device to choose “Uninstall” in Device Manager, I can’t find this option, I have to uninstall the keyboard first then the “Uninstall” option on root-enumerated reappeared.

Then I tried to use “devcon remove” to do the job, but it returned “No device remove”, and the driver still there.

If I remove the keyboard out of TLC, everything work fine with both methods.

This is due to the keyboard not being disablable

d

sent from a phpne with no keynoard

-----Original Message-----
From: xxxxx@yahoo.com
Sent: May 28, 2010 7:47 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Uninstall root-enumerated driver

I use “devcon install” to install the driver. There’s nothing wrong happen, it return successful. And I can see all the devices in Device Manager, it works well too. Just when I when to uninstall by right click on root-enumerated device to choose “Uninstall” in Device Manager, I can’t find this option, I have to uninstall the keyboard first then the “Uninstall” option on root-enumerated reappeared.

Then I tried to use “devcon remove” to do the job, but it returned “No device remove”, and the driver still there.

If I remove the keyboard out of TLC, everything work fine with both methods.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer