USB 设备仿真类扩展 (UdeCx) 调用此回调函数,以请求客户端驱动程序在虚拟 USB 设备上创建默认控制终结点。
语法
EVT_UDECX_USB_DEVICE_DEFAULT_ENDPOINT_ADD EvtUdecxUsbDeviceDefaultEndpointAdd;
NTSTATUS EvtUdecxUsbDeviceDefaultEndpointAdd(
[in] UDECXUSBDEVICE UdecxUsbDevice,
[in] PUDECXUSBENDPOINT_INIT UdecxEndpointInit
)
{...}
参数
[in] UdecxUsbDevice
客户端驱动程序为其创建默认终结点的 UDE 设备对象的句柄。 驱动程序在上一次调用 UdecxUsbDeviceCreate中创建此对象。
[in] UdecxEndpointInit
指向客户端驱动程序在上一次调用中检索到 UdecxUsbSimpleEndpointInitAllocate的 UDECXUSBENDPOINT_INIT 结构的指针。
返回值
如果作成功,回调函数必须返回STATUS_SUCCESS,或NT_SUCCESS(status) 等于 TRUE 的另一个状态值。
要求
| 要求 | 价值 |
|---|---|
| 最低支持的客户端 | Windows 10 |
| 支持的最低服务器 | Windows Server 2016 |
| 目标平台 | 窗户 |
| 最低 KMDF 版本 | 1.15 |
| 标头 | udecxusbdevice.h (包括 Udecx.h) |
| IRQL | PASSIVE_LEVEL |