UdecxUsbDeviceInitSetSpeed 函数 (udecxusbdevice.h)

设置要创建的虚拟 USB 设备的 USB 速度。

语法

void UdecxUsbDeviceInitSetSpeed(
  [in, out] PUDECXUSBDEVICE_INIT   UdecxUsbDeviceInit,
  [in]      UDECX_USB_DEVICE_SPEED UsbDeviceSpeed
);

参数

[in, out] UdecxUsbDeviceInit

指向包含虚拟 USB 设备的初始化参数的 WDF 分配结构的指针。 客户端驱动程序在上一次调用中检索到此指针,UdecxUsbDeviceInitAllocate

[in] UsbDeviceSpeed

指示要设置的 USB 速度的 UDECX_USB_DEVICE_SPEED类型值。

返回值

没有

言论

客户端驱动程序设置设备的 USB 速度后,它仅以该速度运行。 速度还确定设备可连接到的端口类型。 例如,USB SuperSpeed 设备无法连接到 USB 2.0 端口。

要求

要求 价值
最低支持的客户端 Windows 10
支持的最低服务器 Windows Server 2016
目标平台 窗户
最低 KMDF 版本 1.15
标头 udecxusbdevice.h (包括 Udecx.h)
Udecxstub.lib
IRQL PASSIVE_LEVEL

另请参阅

体系结构:USB 设备仿真(UDE)

编写 UDE 客户端驱动程序