IRTCClient2::get_AnswerMode
The get_AnswerMode method sets the answer mode for a session type. This controls if an incoming call will be automatically answered, automatically rejected, or if it will be notified to the application to make the decision. This method retrieves the answer mode that was set by IRTCClient2::put_AnswerMode.
HRESULT get_AnswerMode(RTC_SESSION_TYPEenType,
RTC_ANSWER_MODE*penMode);
Parameters
- enType
[in] An RTC_SESSION_TYPE enumeration specifying the session type for which to get the answer mode. - penMode
[out] Pointer to an RTC_ANSWER_MODE enumeration that receives the answer mode.
Return Values
RTC methods may return an RTC_E_ constant.
Value | Meaning |
---|---|
RTC_CLIENT_NOT_INITIALIZED | The client object has not been initialized. |
RTC_E_NOT_ALLOWED | The IRTCClient::put_ListenForIncomingSessions or the IRTCClient::get_ListenForIncomingSessions method has already been called. |
RTC_E_INVALID_SESSION_TYPE | The session type is not valid for this operation. |
E_POINTER | The penMode parameter is not a valid pointer. |
Remarks
Applications can call this method before calling IRTCClient2::put_AnswerMode to determine the default answer mode for a particular session type.
Requirements
Redistributable: Requires Rtcdll.dll on Windows 2000, Windows XP, and Windows Server 2003.
Header: Declared in Rtccore.h.
Library: Included as a resource in Rtcdll.dll.
GUID: IID_IRTCClient2 is defined as 0C91D71D-1064-42da-BFA5-572BEB8EEA84.