Updated on 2023-03-23 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
8
/**
* API for canceling a meeting
*/
int demoConfListDlg::OnBnCancelConf(hwmsdk::HwmErrCode ret, const char* msg)
{
    string confId= CTools::UNICODE2UTF(CString("989156631"));
    return hwmsdkagent::CancelConf(confId);
}