The following functions are used to initiatialize and shut down MAPI for a client, and to initiate a session with MAPI:
MAPIInitialize MAPILogonEx MAPIUninitialize