共用方式為


UdecxUsbEndpointInitSetEndpointAddress 函式 (udecxusbendpoint.h)

在要建立之簡單端點的初始化參數中設定端點的位址。

語法

void UdecxUsbEndpointInitSetEndpointAddress(
  [in, out] PUDECXUSBENDPOINT_INIT Init,
  [in]      UCHAR                  EndpointAddress
);

參數

[in, out] Init

用戶端驅動程式在先前呼叫中擷取 UdecxUsbSimpleEndpointInitAllocate中擷取之 UDECXUSBENDPOINT_INIT 結構的指標。

[in] EndpointAddress

指定 USB 定義的端點位址。 四個低序位會指定端點編號。 高階位會指定此端點上的數據流方向:1 代表 in,0 代表 out。

傳回值

沒有

要求

要求 價值
最低支援的用戶端 Windows 10
支援的最低伺服器 Windows Server 2016
目標平臺 窗戶
最低 KMDF 版本 1.15
標頭 udecxusbendpoint.h (include Udecx.h)
連結庫 Udecxstub.lib
IRQL PASSIVE_LEVEL

另請參閱

架構:USB 裝置模擬 (UDE)

UdecxUsbEndpointCreate

寫入 UDE 用戶端驅動程式