ITConnection::SetAddressInfo 方法
[ Rendezvous IP Telephony Conferencing Controls and interface not available for use in Windows Vista, Windows Server 2008, and subsequent versions of the operating system. RTC 用戶端 API 提供類似的功能。]
SetAddressInfo方法會設定位址資訊。
語法
HRESULT SetAddressInfo(
[in] BSTR pStartAddress,
[in] LONG NumAddresses,
[in] unsigned char Ttl
);
參數
-
pStartAddress [in]
-
包含起始位址的 BSTR 指標。
-
NumAddresses [in]
-
要用於會話的位址數目。
-
Ttl [in]
-
存留時間 (TTL) 位址上的傳輸範圍。
傳回值
這個方法可以傳回下列其中一個值。
值 | 意義 |
---|---|
|
方法成功。 |
|
pStartAddress、NumAddresses或Ttl參數無效。 |
|
記憶體不足,無法執行作業。 |
|
未指定的錯誤。 |
|
尚未實作這個方法。 |
備註
應用程式必須使用 SysAllocString 為 pStartAddress 參數配置記憶體,並在不再需要變數時使用 SysFreeString 釋放記憶體。
規格需求
需求 | 值 |
---|---|
TAPI 版本 |
需要 TAPI 3.0 或更新版本 |
標頭 |
|
程式庫 |
|
DLL |
|