This topic has not yet been rated - Rate this topic

WdfUsbTargetDeviceGetIoTarget method

The WdfUsbTargetDeviceGetIoTarget method returns a handle to the I/O target object that is associated with a specified USB device.

Syntax


WDFIOTARGET WdfUsbTargetDeviceGetIoTarget(
  [in]  WDFUSBDEVICE UsbDevice
);

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

Requirements

Version

Available in version 1.0 and later versions of KMDF (see KMDF Version History).

Header

Wdfusb.h (include Wdfusb.h)

Library

Wdf<MajorVersionNumber>000.sys (see Framework Library Versioning.)

IRQL

<=DISPATCH_LEVEL

See also

WdfUsbTargetDeviceCreateWithParameters
WdfUsbTargetPipeGetIoTarget

 

 

Send comments about this topic to Microsoft

Build date: 4/23/2013

© 2013 Microsoft. All rights reserved.