Updated on 2025-04-18 GMT+08:00

Accepting a Meeting Invitation

AcceptConf

API Description

This API is used to accept a meeting invitation.

Precautions

  1. This API is an asynchronous API. The return value only indicates whether the API is successfully called. The actual service processing result is returned in the corresponding callback function.

Method Definition

1
HWM_SDK_AGENT_API hwmsdk::HwmErrCode AcceptConf(const HwmAcceptConfParam *acceptConfParam);

Callback Function

1
virtual void OnAcceptConfResult(hwmsdk::HwmErrCode ret, const char* reason) {};

Parameter Description

None

Return Values

Table 1 HwmAcceptConfParam description

Parameter

Mandatory

Type

Description

isAudioAccept

No

bool

Whether to answer the meeting as a voice call (supported only for instant video meetings).

Table 2 Return values

Type

Description

HwmErrCode

If 0 is returned, the operation is successful. If other values are returned, the operation fails. For details about values returned upon failures, see Common Error Codes.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
/**
* Accept a meeting invitation.
*/
void demoAcceptConfDlg::OnBnClickedButtonAcceptConf()
{
    hwmsdkagent::HwmAcceptConfParam info{};
    info.isAudioAccept = false;
    int ret = hwmsdkagent::AcceptConf(&info);
    if (hwmsdk::HWM_COMMON_SUCCESS != ret)
    {
        AfxMessageBox(_T("AcceptConf error"));
    }
}