IOCTL_HID_WRITE_REPORT control code
The IOCTL_HID_WRITE_REPORT control code sends a HID report to a HIDClass device.
Input Buffer
The driver calls IWDFRequest::GetInputMemory to retrieve the buffer containing the report data to be sent to the device.
Input Buffer Length
To obtain the size of the buffer that is provided by the HID class driver, and the report identifier, for this collection, of the report to be written to the device, the driver calls IWDFRequest::GetDeviceIoControlParameters and supplies pInBufferSize and pOutBufferSize.
Output Buffer
None.
Output Buffer Length
None.
Status block
HID minidrivers that carry out the I/O to the device must also:
- Call IWDFIoRequest::SetInformation with the number of bytes transferred to the device.
- Call IWDFIoRequest::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