IOCTL_Ezusb_VENDOR_REQUEST跟IOCTL_EZUSB_VENDOR_OR_CLASS_REQUEST有啥区别与联系?
====我总结的一点:
IOCTL_EZUSB_VENDOR_OR_CLASS_REQUEST用于处理类型为VENDOR_OR_CLASS_REQUEST_CONTROL的request, control structure for sending vendor or class specific requests to the control endpoint.(传送至控制端点的vendor或class请求时的控制结构体)
而IOCTL_Ezusb_VENDOR_REQUEST用于处理类型为VENDOR_REQUEST_IN的request
Set the base of the IOCTL control codes. This is somewhat of an
arbitrary base number, so you can change this if you want unique
IOCTL codes. You should consult the Windows NT DDK for valid ranges of IOCTL index codes before you choose a base index number.
Performs a vendor or class specific control transfer to EP0. The contents of
the input parameter determine the type of request. See the USB spec
for more information on class and vendor control transfers.
IOCTL_Ezusb_VENDOR_REQUEST处理的是基本的设备请求,譬如A0-AF的请求IOCTL_EZUSB_VENDOR_OR_CLASS_REQUEST可以处理用户自定义设备请求,感觉后者包含前者的功能
但是不明确