MAPI_E_FAILONEPROVIDER error is thrown when the user is logged off and Outlook 2016/2019 is accessed in a windows application using MAPI
In a Windows application, calling OpenMsgStore function is throwing error when I am trying to open the default primary store for ‘Outlook’ 2016 Outlook profile only when the user is logged off. When the user is logged in, all the MAPI functions work successfully.