Platform SDK: TAPI |
The RegisterCallNotifications method sets which new call notifications an application will receive. The application must call the method for each address, indicating media type or types it can handle, and specifying the privileges it requests.
An application that will make only outgoing calls does not need to call this method.
The ITTAPIEventNotification outgoing interface must be registered prior to calling this method.
If both owner and monitor privileges are needed for an address, this method should be called only once, with both fMonitor and fOwner set to TRUE.
HRESULT RegisterCallNotifications( ITAddress *pAddress, VARIANT_BOOL fMonitor, VARIANT_BOOL fOwner, long lMediaTypes, long lCallbackInstance, long *plRegister );
Value | Meaning |
---|---|
S_OK | Method succeeded. |
E_POINTER | The plRegister parameter is not a valid pointer. |
E_INVALIDARG | The TAPI object has not been initialized. |
E_OUTOFMEMORY | Insufficient memory exists to perform the operation. |
If multiple calls of this method are used on one address, the information about participant calls from a callhub may be confusing if a call that is already being monitored by the application is handed off to it.
Windows NT/2000: Requires Windows 2000.
Version: Requires TAPI 3.0 or later.
Header: Declared in Tapi3.h.
Library: Use T3iid.lib.
ITTAPI, ITTAPIEventNotification, ITCallNotificationEvent, TAPI Object, Events overview