IO_BLOCK_EX structure (usbscan.h)
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).
Syntax
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;
Members
uOffset
Used as the Value field of a USB Device Request.
uLength
Length of the buffer to transfer.
pbyData
Pointer to a data buffer with a length of uLength.
uIndex
Used as the Index field of a USB Device Request.
bRequest
Used as the bRequest field of a USB Device Request.
bmRequestType
Used as the bmRequestType field of a USB Device Request.
fTransferDirectionIn
TRUE for transfers from device to host; FALSE for transfers from host to device.
Requirements
Requirement | Value |
---|---|
Header | usbscan.h (include Usbscan.h) |