DrtCreateDnsBootstrapResolver 函式 (drt.h)
DrtCreateDnsBootstrapResolver函式會建立啟動程式解析程式,以使用GetAddrInfo系統函式來解析 DRT 網狀中已存在已知節點的主機名稱。
語法
HRESULT DrtCreateDnsBootstrapResolver(
[in] USHORT port,
[in] PCWSTR pwszAddress,
[out] DRT_BOOTSTRAP_PROVIDER **ppModule
);
參數
[in] port
指定 DRT 通訊協定系結在已知節點上的埠。
[in] pwszAddress
指定已知節點的主機名稱。
[out] ppModule
要包含在 DRT_SETTINGS 結構中的 DRT_BOOTSTRAP_PROVIDER 模組指標。
傳回值
此函式會在成功時傳回S_OK。 其他可能的值包括:
傳回碼 | 描述 |
---|---|
|
pwszAddress 為 Null。 |
|
系統無法為提供者配置記憶體。 |
注意 此函式也可能從 基礎呼叫 WSAStartup 和 StringCbPrintfW 傳回錯誤。
需求
最低支援的用戶端 | Windows 7 專業版 [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2008 R2 [僅限傳統型應用程式] |
目標平台 | Windows |
標頭 | drt.h |
程式庫 | Drtprov.lib |
Dll | Drt.dll |