Share this page

# mapi_logout

MS Exchange Server Functions (mapi)

Logs off from MS Exchange.

    int mapi_logout();

The mapi_logout function logs out from the MS Exchange server.

This function is for use with global sessions. For multiple sessions, use the mapi_logout_ex function, which allows you to specify a session identifier.

## Return Values

If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.

## Parameterization

Standard parameterization is not available for this function.

## Example

In the following example, the mapi_logout function logs off from the MAPI server.

    mapi_logon("Logon",
                "ProfileName=John Smith",
                "ProfilePass=Tiger",
                LAST );

    ....

    mapi_logout( );

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: