// wdfusb.h
WDFIOTARGET WdfUsbTargetDeviceGetIoTarget(
[in] WDFUSBDEVICE UsbDevice
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WdfUsbTargetDeviceGetIoTarget method returns a handle to the I/O target object that is associated with a specified USB device.
UsbDevice
[in]A handle to a USB device object that was obtained from a previous call to WdfUsbTargetDeviceCreateWithParameters.
The WdfUsbTargetDeviceGetIoTarget method returns a handle to an I/O target object.
A bug check occurs if a driver-supplied object handle is invalid.
For more information about the WdfUsbTargetDeviceGetIoTarget method and USB I/O targets, see USB I/O Targets.
The following code example creates a request object and verifies that the framework can send a request to the I/O target object that is associated with a specified USB device.
status = WdfRequestCreate(
&attributes,
WdfUsbTargetDeviceGetIoTarget(deviceContext->UsbTargetDevice),
&request
);
WdfUsbTargetDeviceCreateWithParameters