Scenario 5: Canceling a Meeting
Description
After a meeting is scheduled, you can call the API of canceling a meeting to cancel the meeting.
Service Process
To cancel a meeting, call the CancelConf API and implement the OnCancelConfResult and OnConfList functions.
- Call the API.
Call the CancelConf API.
- Implement the callback function.
Implement the OnCancelConfResult function.
- Implement the notification function.
Implement the OnConfList function.
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()); } |
1 2 3 4 5 6 7 8 9 10 11 |
/** * Callback of the API for canceling the meeting */ void demoCallbackProc::OnCancelConfResult(hwmsdk::HwmErrCode ret, const char* msg) { CString codeStr; codeStr.Format(_T("%d"), ret); string msgStr = CTools::UTF82MultiByte(msg); CString tips = _T("OnCancelConfResult code:") + codeStr + _T(", msg:") + CString(msgStr.c_str()); AfxMessageBox(tips); } |
The OnConfList event notification scenario is the same as the meeting scheduling scenario. For details, see Sample Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot