IOCTL_HID_WRITE_REPORT control code

The IOCTL_HID_WRITE_REPORT request sends a HID report to a HIDClass device.

For general information about HIDClass devices, see HID Collections.

Input Buffer

Irp->UserBuffer points to a HID_XFER_PACKET structure the contains the parameters and report to be transmitted to the device. The following members are used:

reportBuffer

A pointer to a resident buffer containing the data to be sent to the device.

reportBufferLen

Specifies the length of the buffer provided at reportBuffer.

ReportID

Specifies the report identifier, for this collection, of the report data to be written to the device.

Input Buffer Length

The size of a HID_XFER_PACKET structure.

Output Buffer

None.

Output Buffer Length

None.

Status block

HID minidrivers that carry out the I/O to the device set the following fields of Irp->IoStatus:

  • Information is set to the number of bytes transferred to the device.

  • Status is set to STATUS_SUCCESS if the transfer completed without error. Otherwise, it is set to an appropriate NTSTATUS error code.

HID minidrivers that call other drivers with this IOCTL 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.

Requirements

Header

Hidport.h (include Hidport.h)

See also

HidD_GetFeature
HidD_GetInputReport
HidD_SetFeature
HidD_SetOutputReport
HID_XFER_PACKET
IOCTL_HID_GET_FEATURE
IOCTL_HID_GET_INPUT_REPORT
IOCTL_HID_READ_REPORT
IOCTL_HID_SET_FEATURE
IOCTL_HID_SET_OUTPUT_REPORT

 

 

Send comments about this topic to Microsoft

Show: