The IOCTL_UMDF_HID_GET_FEATURE control code obtains a feature report from a HIDClass device.
A UMDF-based driver calls IWDFRequest::GetInputMemory to retrieve a requester-allocated input buffer that contains the report ID of the collection.
Input Buffer Length
The size of the buffer obtained by calling IWDFRequest::GetInputMemory.
A UMDF-based driver calls IWDFRequest::GetOutputMemory to retrieve a requester-allocated output buffer. The driver uses the buffer to return a feature report.
Output Buffer Length
The size of the buffer that is retrieved by calling IWDFIoRequest::GetOutputMemory.
HID minidrivers that carry out the I/O 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.