On 2012.08.15 22:32, David Grant wrote:
> Partially answering my own question here... I was just going through old
> posts to the mailing list and found this:
>
>  >> 1. Can I use Zadig to install a WinUSB driver for the VID/PID?
>
>  > Yes, that's one of the things it is meant for. You can also use
>> libwdi in your own program, to do what zadig does, but in a more
>> automated fashion.
>
> Ok, so that sounds promising. I guess the next question is: is it
> possible to use libwdi to install a filter driver for a device

Yes. The latest version of libwdi can install (and uninstall) the 
libusb-win32 filter driver.

> or to
> replace that device's driver, take over the device, and then put
> everything back to where it was, all without a reboot?

libwdi only supports driver uninstallation for the filter driver. It 
does not support uninstall for regular driver.

Also be mindful that unlike what is the case on Linux, driver 
"switching" is anything but instantaneous on Windows => users may have 
to wait up to many minutes for driver installation/uninstallation to 
complete.

Right now my advice would be:
1. If you absolutely need to keep the existing driver, then the 
libusb-win32 filter driver is your best option.
2. If you don't need to keep the existing driver, you should replace it 
and leave one of the more generic ones (WinUSB, libusb-win32, libusbK) 
installed, as it will be a lot more friendly for users than keeping 
something proprietary.

Be mindful that at the moment, libusb-win32 and libusbK support is not 
enabled in mainline, but work is ongoing to have it in the next version, 
and you can use the 0K branch at [1] to test it. It's very early though, 
and with mixed results when the libusb-win32 filter driver is being used 
against a proprietary driver.

Also, if your plan is to replace something like the native Windows HID 
or Mass Storage driver for libusbx access on a temporary basis, you may 
want to have a look at using the HID or Mass Storage APIs directly 
instead of using libusbx.

Regards,

/Pete

[1] https://github.com/pbatard/libusbx/tree/0K

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to