Share this page

# mapi_logout_ex

MS Exchange Server Functions (mapi)

Logs out from a specific MS Exchange session.

    int mapi_logout_ex( MAPI *ppmapi );

ppmapi | A session identifier.

The mapi_logout_ex function logs off from the MAPI server for a specific function.

This function is for use with multiple sessions. For global sessions, use the mapi_logout function, which leaves out the 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_ex function logs off from the server.

Copy code

    mapi_logon_ex(&mapi,"Logon",
                "ProfileName=John Smith",
                "ProfilePass=Tiger",
                LAST );
    ....
    mapi_logout_ex(&mapi);

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