IOCTL_HID_WRITE_REPORT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// hidport.h

// CTL_CODE(0x000b, 0x003, METHOD_NEITHER, FILE_ANY_ACCESS)
#define IOCTL_HID_WRITE_REPORT 0x000B000F
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-hidport-ioctl_hid_write_report)

IOCTL_HID_WRITE_REPORT IOCTL

Description

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

For general information about HIDClass devices, see HID Collections.

Parameters

Major code

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:

Input buffer length

The size of a HID_XFER_PACKET structure.

Output buffer

None.

Output buffer length

None.

Input/output buffer

Input/output buffer length

Status block

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 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.

-ReportID

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

-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.

See also

HID_XFER_PACKET

HidD_GetFeature

HidD_GetInputReport

HidD_SetFeature

HidD_SetOutputReport

IOCTL_HID_GET_FEATURE

IOCTL_HID_GET_INPUT_REPORT

IOCTL_HID_READ_REPORT

IOCTL_HID_SET_FEATURE

IOCTL_HID_SET_OUTPUT_REPORT