|
From: Sheng Xu <xus...@ya...> - 2006-10-25 02:30:16
|
> 7. Re: control msg (Stephan Meyer)
Sorry,
in \LibUSB-Win32-0.1.10.1\src\src\windows.c
function usb_control_msg()
line 786
case USB_TYPE_VENDOR:
case USB_TYPE_CLASS:
verdor type and class type are taken as then same, and
are force to be vendor type with following functions.
if(!DeviceIoControl(dev->impl_info,
LIBUSB_IOCTL_VENDOR_READ,
&req,
sizeof(libusb_request),
bytes, size, &ret,
NULL))
if(!DeviceIoControl(dev->impl_info,
LIBUSB_IOCTL_VENDOR_WRITE,
tmp,
sizeof(libusb_request) + size,
NULL, 0, &ret, NULL))
So, how about make them different, and send what user
want?
Best Regards,
Xu Sheng
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|