Updated on 2023-03-23 GMT+08:00

Logout

Logout

API Description

This API is used to log out of Huawei Cloud Meeting.

Precautions

  1. Call this API only when you have logged in.
  2. 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 Logout();

Callback Function

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

Parameter Description

None

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.

HwmLogoutResult

Logout result

Table 2 HwmLogoutResult parameters

Parameter

Type

Description

userUuid

char[]

UUID, which is the unique user ID allocated by the system.

account

char[]

Account

thirdAccount

char[]

Third-party account

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
/**
* Logout
*/
void demoMainMenuDlg::OnBnClickedLogout()
{
    // Call the logout API.
    int ret = hwmsdkagent::Logout();
    if (hwmsdk::HWM_COMMON_SUCCESS != ret)
    {
        AfxMessageBox(_T("Logout error"));
    }
}