共用方式為


UdecxUsbDeviceInitSetStateChangeCallbacks 函式 (udecxusbdevice.h)

使用回呼函式的指標,初始化 WDF 配置的結構。

語法

void UdecxUsbDeviceInitSetStateChangeCallbacks(
  [in, out] PUDECXUSBDEVICE_INIT                     UdecxUsbDeviceInit,
  [in]      PUDECX_USB_DEVICE_STATE_CHANGE_CALLBACKS Callbacks
);

參數

[in, out] UdecxUsbDeviceInit

WDF 配置結構的指標,其中包含虛擬 USB 裝置的初始化參數。 用戶端驅動程式在先前呼叫 UdecxUsbDeviceInitAllocate 中擷取此指標。

[in] Callbacks

UDECX_USB_DEVICE_STATE_CHANGE_CALLBACKS 結構的指標,其中包含用戶端驅動程式所實作之回呼函式的指標。

傳回值

規格需求

需求
最低支援的用戶端 Windows 10
最低支援的伺服器 Windows Server 2016
目標平台 Windows
最小 KMDF 版本 1.15
標頭 udecxusbdevice.h (include Udecx.h)
程式庫 Udecxstub.lib
IRQL PASSIVE_LEVEL

另請參閱

架構:USB 裝置模擬 (UDE)

UdecxUsbDeviceInitAllocate

撰寫 UDE 用戶端驅動程式