itCallNotificationEvent 介面 (tapi3if.h)

ITCallNotificationEvent 介面包含擷取呼叫通知事件描述的方法。 當應用程式的 ITTAPIEventNotification::Event 方法實作指出TAPI_EVENT等於TE_CALLNOTIFICATION時,方法的 pEvent 參數是 ITCallNotificationEvent 介面的 IDispatch 指標。 這個介面的方法可用來擷取所發生之呼叫通知事件的相關信息。

這個傳出介面會向 TAPI 物件註冊,以取得有關呼叫的所有資訊。 應用程式必須在 TAPI 物件上呼叫 ITTAPI::RegisterCallNotifications 方法,才能註冊此介面。

注意 您必須呼叫 ITTAPI::p ut_EventFilter 方法,並設定包含 TE_CALLNOTIFICATION 事件的事件篩選遮罩,以啟用呼叫通知事件的接收。 如果您未呼叫 ITTAPI::p ut_EventFilter,您的應用程式將不會收到任何事件。 如需詳細資訊,請參閱 事件 概觀。
 

繼承

ITCallNotificationEvent 介面繼承自 IDispatch 介面。 ITCallNotificationEvent 也有下列類型的成員:

方法

ITCallNotificationEvent 介面具有這些方法。

 
ITCallNotificationEvent::get_Call

get_Call方法會傳回發生呼叫事件的 ITCallInfo 介面。
ITCallNotificationEvent::get_CallbackInstance

get_CallbackInstance方法會取得與此事件相關聯之回呼實例的指標。 (ITCallNotificationEvent.get_CallbackInstance)
ITCallNotificationEvent::get_Event

get_Event方法會傳回CALL_NOTIFICATION_EVENT描述應用程式是否擁有或正在監視事件發生的呼叫。

規格需求

需求
目標平台 Windows
標頭 tapi3if.h (包括 Tapi3.h)

另請參閱

呼叫物件

IDispatch

ITTAPI::RegisterCallNotifications

ITTAPIEventNotification::Event

註冊事件代碼段

TAPI_EVENT