IOCTL_HID_GET_DEVICE_DESCRIPTOR control code
The IOCTL_HID_GET_DEVICE_DESCRIPTOR control code obtains the HID descriptor for a HIDClass device.
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.
The HID minidriver returns the device descriptor by filling the buffer that is obtained by calling IWDFRequest::GetOutputMemory.
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.
Minimum UMDF version