MAPILogonEx (NULL, (LPTSTR) (LPCTSTR) m_strProfile, (LPTSTR) lpcszPassword,
MAPI_EXTENDED|MAPI_UNICODE|MAPI_NEW_SESSION|MAPI_NO_MAIL|MAPI_TIMEOUT_SHORT,
&m_pSession);
I am getting the following error when tried to connect. I am creating a
random profile and using it in the function call.
Errors:-
ERROR: hr: 0x80040111
ERROR: ClassFactory cannot supply requested class
I have searched the error codes it maps to MAPI_E_LOGON_FAILED. The user in
whose context the application is running has exchange admin rights.
Any pointer to resolve this error will be helpful
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"san" <s...@discussions.microsoft.com> wrote in message
news:EA2CA62D-166D-4A0A...@microsoft.com...