IWDFUsbInterface 接口 (wudfusb.h)

[警告: UMDF 2 是最新版本的 UMDF,取代了 UMDF 1。 所有新的 UMDF 驱动程序都应使用 UMDF 2 编写。 没有将新功能添加到 UMDF 1,并且对较新版本的 Windows 10 上的 UMDF 1 的支持有限。 通用 Windows 驱动程序必须使用 UMDF 2。 有关详细信息,请参阅 UMDF入门 。]

IWDFUsbInterface 接口公开 USB 设备公开的 USB 接口。

遗产

IWDFUsbInterface 接口继承自 IWDFObjectIWDFUsbInterface 也有以下类型的成员:

  • 方法

方法

IWDFUsbInterface 接口具有这些方法。

 
IWDFUsbInterface::GetConfiguredSettingIndex

GetConfiguredSettingIndex 方法检索 USB 接口的当前设置索引。
IWDFUsbInterface::GetInterfaceDescriptor

GetInterfaceDescriptor 方法检索 USB 接口的描述符。
IWDFUsbInterface::GetInterfaceNumber

GetInterfaceNumber 方法检索 USB 接口的索引。
IWDFUsbInterface::GetNumEndPoints

GetNumEndPoints 方法检索 USB 接口上的终结点数(管道)。
IWDFUsbInterface::GetWinUsbHandle

GetWinUsbHandle 方法检索与 USB 接口关联的 WinUsb 接口句柄。
IWDFUsbInterface::RetrieveUsbPipeObject

RetrieveUsbPipeObject 方法检索指定管道索引的 USB 管道对象。
IWDFUsbInterface::SelectSetting

SelectSetting 方法在 USB 接口上选择指定的备用设置。

要求

要求 价值
终止支持 在 UMDF 2.0 及更高版本中不可用。
目标平台 桌面
最低 UMDF 版本 1.5
标头 wudfusb.h