IO_BLOCK structure (usbscan.h)

The IO_BLOCK structure is used as a parameter to DeviceIoControl, when the specified I/O control code is IOCTL_READ_REGISTERS or IOCTL_WRITE_REGISTERS. 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 {
  unsigned uOffset;
  unsigned uLength;
  PUCHAR   pbyData;
  unsigned uIndex;
} IO_BLOCK, *PIO_BLOCK;

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.

Requirements

Requirement Value
Header usbscan.h (include Usbscan.h)