ITAddress::CreateForwardInfoObject 方法 (tapi3if.h)

CreateForwardInfoObject方法會建立轉送資訊物件,並傳回ITForwardInformation介面指標。 此介面會公開方法,讓應用程式控制呼叫轉送方式的各個層面,例如內部呼叫是否會以不同于外部呼叫的方式處理。

語法

HRESULT CreateForwardInfoObject(
  [out] ITForwardInformation **ppForwardInfo
);

參數

[out] ppForwardInfo

ITForwardInformation介面的指標。

傳回值

這個方法可以傳回其中一個值。

意義
S_OK
方法成功。
E_OUTOFMEMORY
記憶體不足,無法執行作業。
E_POINTER
ppForwardInfo參數不是有效的指標。

備註

應用程式必須先設定新建立 之 ITForwardInformation 物件的資訊,才能使用 物件。

TAPI 會在ITAddress::CreateForwardInfoObject所傳回的 ITForwardInformation介面上呼叫AddRef方法。 應用程式必須在ITForwardInformation介面上呼叫Release,以釋放與其相關聯的資源。

規格需求

   
目標平台 Windows
標頭 tapi3if.h (包括 Tapi3.h)
程式庫 Uuid.lib
Dll Tapi3.dll

另請參閱

Address 物件

轉寄

ITAddress

ITForwardInformation

get_CurrentForwardInfo