| 
      
      
      From: Mark B. <mb...@ze...> - 2006-06-18 21:08:42
      
     | 
| Have you called usb_set_configuration first? You need to do that before claiming an interface. Also I think interfaces are numbered from 0, so 0 might be a valid interface but not 1 (not being sure what you passed to usb_claim_interface, I thought that might be worth mentioning). You probably need administrative privileges to install the driver, but not to run the software. If in doubt, try running it as administrator and see if it works. Mark. Ben wrote: >Hello > >I am trying to use libusb on WinXP >to operate ftdi chip in bitbang mode. >I've created inf file and successfully >installed the device driver (not filter driver). >Using supplied test program I see the device. >But when I run my program usb_claim_interface >fails. I've checked that no other drivers >use the device. What actually happens >is that DeviceIoControl inside usb_claim_interface >returns error with description "invalid argument". >The same code works fine on Linux. >Do I need administrative >privileges to use libusb ? > >thanks > > > > > >_______________________________________________ >Libusb-win32-devel mailing list >Lib...@li... >https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > |