A question about devcon

I’m try to use devcon to update the driver of any usb device. I want to replace the usb device driver by my own stub driver, which has it’s own device ID. Because the device ID is not the same as the usb device to be replaced, the update was failed. If I modify the device ID in the inf file of stub driver, make it be the same the usb device ID, update successed. Is there any way to do this without modifying the device ID?

disney_cheng@qq.com wrote:

I’m try to use devcon to update the driver of any usb device. I want to replace the usb device driver by my own stub driver, which has it’s own device ID. Because the device ID is not the same as the usb device to be replaced, the update was failed. If I modify the device ID in the inf file of stub driver, make it be the same the usb device ID, update successed. Is there any way to do this without modifying the device ID?

The question is kind of silly. If your driver package does not support
your device, why would the operating system ever try to load it for that
device?

No, the right answer is to modify the INF file. You do understand that
you can include many device IDs in a single INF file, right?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

OK, I see. Thanks.