Hi!

I continue my test on the libusbx-1.0.12-win under WinXP SP3 by
using a HID device. This time I follow steps in example xusb.c:

     1. r = libusb_init(NULL);
     2. handle = libusb_open_device_with_vid_pid(NULL, vid, pid);
     3. dev = libusb_get_device(handle);
     4. libusb_get_device_descriptor(dev, &dev_desc);

So far so good.

     5. libusb_get_config_descriptor(dev, 0, &conf_desc)

get a return value -5.

It seems that I always encounter problems which looks silly:-(

Best Regards,
Jach Fong

------------------------------------------------------------------------------
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