WdfUsbTargetDeviceGetIoTarget - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfusb.h

WDFIOTARGET WdfUsbTargetDeviceGetIoTarget(
  [in] WDFUSBDEVICE UsbDevice
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfusb-wdfusbtargetdevicegetiotarget)

WdfUsbTargetDeviceGetIoTarget function

Description

[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.

Parameters

UsbDevice [in]

A handle to a USB device object that was obtained from a previous call to WdfUsbTargetDeviceCreateWithParameters.

Return value

The WdfUsbTargetDeviceGetIoTarget method returns a handle to an I/O target object.

A bug check occurs if a driver-supplied object handle is invalid.

Remarks

For more information about the WdfUsbTargetDeviceGetIoTarget method and USB I/O targets, see USB I/O Targets.

Examples

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
                          );

See also

WdfUsbTargetDeviceCreateWithParameters

WdfUsbTargetPipeGetIoTarget