// hidport.h
// CTL_CODE(0x000b, 0x002, METHOD_NEITHER, FILE_ANY_ACCESS)
#define IOCTL_HID_READ_REPORT 0x000B000B
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_HID_READ_REPORT request transfers an input report from a HIDClass device into the HID class driver's buffer.
For general information about HIDClass devices, see HID Collections.
Parameters.DeviceIoControl.OutputBufferLength contains the size of the buffer provided at Irp->UserBuffer.
The size of OutputBufferLength
HID minidriver fills the system-resident buffer pointed to by Irp->UserBuffer with the report data retrieved from the device.
The size of the UserBuffer.
HID minidrivers that carry out the I/O to the device set the following fields of Irp->IoStatus:
HID minidrivers that call other drivers with this IRP to carry out the I/O to their device should ensure that the Information field of the status block is correct and not change the contents of the Status field.
IOCTL_HID_READ_REPORT is typically used for continuously completing input reports that are sent by the device. This IOCTL is sent down by the HID class driver (HIDCLASS) in ping-pong fashion. In other words, as soon as a request is fulfilled (completed), another one can be sent down to the device, allowing for continuous reporting of data. This is an “asynchronous” mechanism, so for example, the device can use it to send data up to the host, regarding changes in state as those changes occur.