情報
要求されたトピックは次のとおりです。しかし、このトピックはこのライブラリには含まれていません。

WdfUsbTargetDeviceGetNumInterfaces メソッド

The WdfUsbTargetDeviceGetNumInterfaces method returns the number of USB device interfaces that are supported by a specified USB device.

構文

UCHAR WdfUsbTargetDeviceGetNumInterfaces(
  [in]  WDFUSBDEVICE UsbDevice
);

パラメーター

UsbDevice [in]

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

戻り値

WdfUsbTargetDeviceGetNumInterfaces returns the number of USB interfaces that the device supports.

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

解説

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

The following code example obtains the number of USB device interfaces that a specified USB device supports.

UCHAR numInterfaces;

numInterfaces = WdfUsbTargetDeviceGetNumInterfaces(UsbDevice);

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfusb.h (includeWdfusb.h)

ライブラリ

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

IRQL

<=DISPATCH_LEVEL

参照

WdfUsbTargetDeviceCreate

 

 

コミュニティの追加

表示:
© 2014 Microsoft