I'm working on a stand alone application (not an Outlook plugin) that uses
MAPI to access Outlook/Exchange mailboxes. The Exchange accounts are
configured in Cached Exchange Mode. However, when I programmatically open the
message stores (IMAPISession::OpenMsgStore()) a connection is established
with the Exchange server.
One important note: The connections are not created immediately on the
OpenMsgStore() call. They seem to be established only if my application pumps
messages in the thread that has initialized MAPI. I made a test application
that simply open the store and pump messages. I get 2 connections established
after a delay of about 40 seconds.
Here is flags I pass to the API functions:
MAPIInitialize: {0, MAPI_MULTITHREAD_NOTIFICATIONS}
MAPILogonEx: MAPI_USE_DEFAULT | MAPI_NO_MAIL | MAPI_EXTENDED
IMAPISession::OpenMsgStore: MDB_NO_DIALOG | MDB_NO_MAIL
So, is there any flag that could help me to prevent these connections to the
Exchange server and work only offline?
Thanks.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Shomano" <Sho...@discussions.microsoft.com> wrote in message
news:6A6A5415-2341-4E11...@microsoft.com...
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Shomano" <Sho...@discussions.microsoft.com> wrote in message
news:AF745C1C-F9B7-4701...@microsoft.com...
I know messages are still downloaded only once since the store is cached,
but does the increased number of connections will impact the server
performance?
Thanks again Dimitry
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Shomano" <Sho...@discussions.microsoft.com> wrote in message
news:47FF3C4F-F200-45A4...@microsoft.com...