MAPI Developers: Create profiles programmatically to connect Exchange 2013/Legacy Exchange versions, Office 365
As Stephen updated earlier, Dave had published series of blog posts (given below) which helps you to create Outlook profiles programmatically using MFCMAPI utility to connect Exchange Server 2013/legacy versions of Exchange, Office 365. Adding them for your reference.
How to use MFCMAPI to create a MAPI profile to connect to Exchange 2013 using latest version of MAPICDO?
https://blogs.msdn.com/b/dvespa/archive/2013/05/21/how-to-mfcmapi-create-mapi-profile-exchange-2013.aspx
How to create an Outlook profile for Office 365 using Outlook MAPI? https://blogs.msdn.com/b/dvespa/archive/2014/01/17/how-create-outlook-profile-office-365.aspx
How to configure an Outlook profile using MFCMAPI for Exchange 2013 using Outlook MAPI? https://blogs.msdn.com/b/dvespa/archive/2014/01/16/create-outlook-profile-exchange-2013.aspx
How to use the same profile to connect to both Exchange 2013 and legacy versions of Exchange Server using latest version of MAPICDO? https://blogs.msdn.com/b/dvespa/archive/2013/05/27/omniprof.aspx
Note : You can download the latest MAPICDO (May 2013 update) from https://www.microsoft.com/en-us/download/details.aspx?id=39045
Hope this helps. Enjoy!!