Example: mapi_logout_ex

In the following example, the mapi_logout_ex function logs off from the server.

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