Programmatically connecting to Exchange Server using MAPI.

A

Allan

Hi!

I have a windows service which periodically processes e-mails from Exchange
Server 2003. To connect to Exchange I use MAPI functionality.

Following is the extract from my code:

MAPIINIT_0 pMapiInit;

pMapiInit.ulVersion = MAPI_INIT_VERSION;

pMapiInit.ulFlags =
MAPI_NT_SERVICE | MAPI_MULTITHREAD_NOTIFICATIONS;

hr = MAPIInitialize(&pMapiInit);

…

MAPIUninitialize();

After about 400 - 500 iterations which occur in time interval of
approximately 2 days I got following error message:

MAPIInitialize failed 80040108

How is it possible to overcome that problem or bug?

Best regards,
Allan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top