Re: libusb_claim_interface failed on Windows7
Xiaofan Chen <[email protected]> Wed, 17 Aug 2016 22:19:52 +0800
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <CAGjSPUDh2e9BVNPBCP4N8PNXBkEwAmXkXNpLdm5dEdDRO9C6AQ@mail.gmail.com> |
On Wed, Aug 17, 2016 at 4:44 PM, popear <[email protected]> wrote: > I got a failed message when using `xusb.exe myvid:mypid`, and it failed when > claiming interface 2. > It shows like this: > > <http://libusb.6.n5.nabble.com/file/n5715986/failed.png> The image is not clear. Please do not use image. Just copy paste the error message. > And usb_claim_interface is OK while using the libusb-compat-0.1.4 library. > But libusb-compat-0.1 API does not meet my requirement, I need to use > libusb1.0 API(libusb_get_port_number). > So, is it possible to use libusb1.0 API on Windows? The example is not > working well. > Anyone help? Thanks! Yes libusb works well under Windows. You should use WinUSB driver. You can install WinUSB driver using Zadig. > Sorry, I mean usb_claim_interface is OK while using libusb-win32 library, > which is in libusb-win32-bin-1.2.6.0.zip. -- Xiaofan ------------------------------------------------------------------------------