IOCTL_UMDF_HID_GET_FEATURE IOCTL (hidport.h)
The IOCTL_UMDF_HID_GET_FEATURE control code obtains a feature report from a HIDClass device.
Major code
Input buffer
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.
Output buffer
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.
Status block
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.
Requirements
Requirement | Value |
---|---|
Header | hidport.h |