IOCTL_HID_GET_DEVICE_DESCRIPTOR control code
The IOCTL_HID_GET_DEVICE_DESCRIPTOR control code obtains the HID descriptor for a HIDClass device.
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 request 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_HID_GET_DEVICE_DESCRIPTOR
IOCTL_HID_GET_DEVICE_ATTRIBUTES
IOCTL_HID_GET_REPORT_DESCRIPTOR
IOCTL_UMDF_GET_PHYSICAL_DESCRIPTOR