WDF_USB_DEVICE_CREATE_CONFIG
WDF_USB_DEVICE_CREATE_CONFIG_INIT
WdfUsbTargetDeviceCreateIsochUrb method
WdfUsbTargetDeviceCreateUrb method
WdfUsbTargetDeviceCreateWithParameters method
WdfUsbTargetDeviceQueryUsbCapability method
展開 最小化

WdfUsbTargetDeviceIsConnectedSynchronous メソッド

The WdfUsbTargetDeviceIsConnectedSynchronous method determines if the specified USB device is connected.

構文

NTSTATUS WdfUsbTargetDeviceIsConnectedSynchronous(
  [in]  WDFUSBDEVICE UsbDevice
);

パラメーター

UsbDevice [in]

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

戻り値

WdfUsbTargetDeviceIsConnectedSynchronous returns the I/O target's completion status value if the operation succeeds. Otherwise, this method can return one of the following values:

リターン コード説明
STATUS_INVALID_PARAMETER

An invalid parameter was detected.

STATUS_INVALID_DEVICE_REQUEST

The caller's IRQL was invalid.

STATUS_DEVICE_NOT_CONNECTED or STATUS_DEVICE_DOES_NOT_EXIST

The device was not connected.

 

This method also might return other NTSTATUS values.

A bug check occurs if the driver supplies an invalid object handle.

解説

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

The following code example determines if a specified USB device is connected.

NTSTATUS status;

status = WdfUsbTargetDeviceIsConnectedSynchronous(UsbDevice);

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfusb.h (includeWdfusb.h)

ライブラリ

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

IRQL

PASSIVE_LEVEL

参照

WdfUsbTargetDeviceCreate

 

 

コミュニティの追加

追加
表示:
© 2015 Microsoft