I wonder if anyone can help me out. I'm currently creating windows
service (32bit) using the MapiStubLibrary and Outlook 2010 headers
within Visual C++ 2010.
Now, this all works fine if I call the MAPI code from within the main
function (i.e. before the service pieces have taken over); this works
whether run as a service or as a command line.
If I call this same code from within the ServiceMain function then it
fails everytime with MAPI_E_LOGON_FAILED from MAPILogonEx.
The function I am calling with all the mapi code within it is as
thanks for any advice.
int CEnveloperMapi::testMapi(Helper thehelper, char *szMapiProfile)
mapihelper = thehelper;