IOCTL_HID_GET_DEVICE_ATTRIBUTES IOCTL (hidport.h)

The IOCTL_HID_GET_DEVICE_ATTRIBUTES request obtains a HIDClass device's attributes in a HID_DEVICE_ATTRIBUTES structure.

For general information about HIDClass devices, see HID Collections.

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

Parameters.DeviceIoControl.OutputBufferLength contains the length, in bytes, of the HID class driver's buffer located at Irp->UserBuffer.

Input buffer length

The size, in bytes, of the buffer must be greater than or equal to the size, in bytes, of a HID_DEVICE_ATTRIBUTES structure.

Output buffer

The HID minidriver returns the device attributes in a HID_DEVICE_ATTRIBUTES structure at Irp->UserBuffer.

Output buffer length

The size of a HID_DEVICE_ATTRIBUTES structure.

Status block

The HID minidriver sets the following fields of Irp->IoStatus:

  • Information is set to the number of bytes transferred from the device.
  • Status is set to STATUS_SUCCESS if the transfer completed without error. Otherwise, it is set to an appropriate NTSTATUS error code.

Requirements

Requirement Value
Header hidport.h (include Hidport.h)

See also

HID_DEVICE_ATTRIBUTES

IOCTL_HID_GET_DEVICE_DESCRIPTOR