itAgentSession::get_Agent 方法 (tapi3.h)
get_Agent方法會取得與此會話相關聯之 ITAgent介面的指標。
語法
HRESULT get_Agent(
[out] ITAgent **ppAgent
);
參數
[out] ppAgent
ITAgent介面的指標。
傳回值
這個方法可以傳回下列其中一個值。
值 | 意義 |
---|---|
|
方法成功。 |
|
記憶體不足,無法執行作業。 |
|
ppAgent參數不是有效的指標。 |
備註
TAPI 會在ITAgentSession::get_Agent傳回的ITAgent介面上呼叫AddRef方法。 應用程式必須在ITAgent介面上呼叫Release,以釋放與其相關聯的資源。
需求
目標平台 | Windows |
標頭 | tapi3.h (包括 Tapi3.h) |
程式庫 | Uuid.lib |
Dll | Tapi3.dll |