itTAPIEventNotification 介面 (tapi3if.h)

ITTAPIEventNotification 介面是傳出介面,可讓應用程式控制事件信息的處理。 應用程式必須實作此介面:它必須建立支援此介面的 COM 對象,然後使用 COM 標準 IConnectionPointContainerIConnectionPoint 介面進行註冊。

TAPI 會呼叫此介面的 ITTAPIEventNotification::Event 方法,以回應事件。 一般而言,應用程式會實作一組 switch 語句,使用 TAPI_EVENT 列舉值來判斷事件的回應。

註冊此介面之後,應用程式會呼叫 ITTAPI::p ut_EventFilter 來指定必須接收的事件。 如果未呼叫這個方法,應用程式將不會收到任何事件。

然後,應用程式可以呼叫 ITTAPI::RegisterCallNotifications 來通知 TAPI 位址和媒體類型,讓應用程式接受來電會話。

如需事件處理的其他資訊,請參閱 事件 概觀。

繼承

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

方法

ITTAPIEventNotification 介面具有這些方法。

 
ITTAPIEventNotification::Event

TAPI 會呼叫 Event 方法,以判斷異步事件通知的回應。

規格需求

需求
目標平台 Windows
標頭 tapi3if.h

另請參閱

事件概觀

ITACDGroupEvent

ITAddressEvent

ITAgentEvent

ITAgentHandlerEvent

ITAgentSessionEvent

ITCallHubEvent

ITCallInfoChangeEvent

ITCallMediaEvent

ITCallNotificationEvent

ITCallStateEvent

ITDigitDetectionEvent

ITDigitGenerationEvent

ITParticipantEvent

ITQOSEvent

ITQueueEvent

ITRequestEvent

ITTAPIObjectEvent

註冊事件代碼段

TAPI 物件

TAPI_EVENT