IOCTL_UMDF_GET_PHYSICAL_DESCRIPTOR IOCTL (hidport.h)
The IOCTL_UMDF_GET_PHYSICAL_DESCRIPTOR control code obtains the physical descriptor of a HIDClass device.
Major code
Input buffer
A UMDF-based driver obtains the size, in bytes, of the buffer by calling IWDFRequest::GetDeviceIoControlParameters and providing the pOutBufferSize parameter.
Output buffer
The driver copies the physical descriptor to the user buffer that is retrieved by calling IWDFIoRequest::GetOutputMemory.
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 |