IOCTL_HID_READ_REPORT control code
The IOCTL_HID_READ_REPORT control code transfers an input report from a HIDClass device to the HID class driver's buffer.
Input Buffer
To obtain the size of the buffer that is provided by the HID class driver, the UMDF-based HID minidriver calls IWDFRequest::GetDeviceIoControlParameters and supplies pOutBufferSize.
Output Buffer
The HID minidriver returns the device descriptor by filling the buffer that is obtained by calling IWDFRequest::GetOutputMemory.
Output Buffer Length
The size of the buffer obtained by calling IWDFRequest::GetOutputMemory.
Status block
HID minidrivers that carry out the I/O to the device must also:
- Call IWDFRequest::SetInformation to set the number of bytes transferred from the device.
- Call IWDFRequest::Complete with S_OK to complete the request without error. Otherwise, set the appropriate HRESULT error code.
Requirements
Minimum UMDF version |
1.11 |
Header |
Hidport.h |
See also
IOCTL_UMDF_HID_GET_INPUT_REPORT
IOCTL_UMDF_HID_GET_FEATURE
IOCTL_UMDF_HID_SET_OUTPUT_REPORT