// usbscan.h
typedef struct _IO_BLOCK_EX {
unsigned uOffset;
unsigned uLength;
PUCHAR pbyData;
unsigned uIndex;
UCHAR bRequest;
UCHAR bmRequestType;
UCHAR fTransferDirectionIn;
} IO_BLOCK_EX, *PIO_BLOCK_EX;
View the official Windows Driver Kit DDI referenceNo description available.
The IO_BLOCK_EX structure is used as a parameter to DeviceIoControl, when the specified I/O control code is IOCTL_SEND_USB_REQUEST. Values contained in structure members are used to create a USB Device Request (described in the Universal Serial Bus Specification).
uOffsetUsed as the Value field of a USB Device Request.
uLengthLength of the buffer to transfer.
pbyDataPointer to a data buffer with a length of uLength.
uIndexUsed as the Index field of a USB Device Request.
bRequestUsed as the bRequest field of a USB Device Request.
bmRequestTypeUsed as the bmRequestType field of a USB Device Request.
fTransferDirectionInTRUE for transfers from device to host; FALSE for transfers from host to device.