Updated on 2024-07-30 GMT+08:00

Canceling a Meeting

CancelConf

API Description

This API is used to cancel a scheduled meeting.

Precautions

  1. Call this API after login.
  2. This API can only be used to cancel meetings that have not started. If this API is called to cancel a meeting that has been started, a failure message is returned.
  3. 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 CancelConf(const char confId[HWM_MAX_CONF_ID_LEN]);

Callback Function

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

Parameter Description

Parameter

Mandatory

Type

Description

confId

Yes

char[]

Meeting ID.

Return Values

Table 1 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
/**
* API for canceling a meeting
*/
int demoConfListDlg::OnBnCancelConf(hwmsdk::HwmErrCode ret, const char* msg)
{
    return hwmsdkagent::CancelConf(GetConfId().c_str());
}