Outlook in Cached mode...

K

Karim Ericsson

I've been looking for a way to register when an outlook client goes offline
when in cached mode. There doesn't seem to be an event för this in Outlook
2003 object model, which seems a bit weird.

You can check if it's online, offline at startup easily enough but not if
the network connection goes down or if the user for some reason wants to work
offline and disconnects through the new cached mode functionality.

Do I have to put in a timer in my application that checks offline status
every millisecond and what would that do to the performance of the Outlook
client?
 
K

Ken Slovak

You'd have to do something like that since there is no event you can
subscribe to. I'd say every millisecond would be overkill, something like
once a second should be fine and since the check is just a line or two of
code it wouldn't impact performance or responsiveness at all.
 
D

Dmitry Streblechenko \(MVP\)

MS has recently documented a new interface - IMAPIOfflineMgr
http://msdn.microsoft.com/library/en-us/olintapi/html/oliaIMAPIOfflineMgr_HV01156488.asp?frame=true

Essentially it lets you subscribe to an event that will be raised when
Outlook changes its connection state.
I don't think you'd be able to use it from anything other than C++ or
Delphi.
BTW, beta version of OutlookSpy
(http://www.dimastr.com/outspy/download/OutSpy_beta_2_9.exe) will let you
play with that interface (click "Misc | IMAPIOfflineMgr" button on the
OutlookSpy toolbar).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
K

Karim Ericsson

Hi Dmitry,
Will you implement that method in the new version of Redemption.dll?
 
K

Karim Ericsson

Ok, I'll try that then...Thanks

Ken Slovak said:
You'd have to do something like that since there is no event you can
subscribe to. I'd say every millisecond would be overkill, something like
once a second should be fine and since the check is just a line or two of
code it wouldn't impact performance or responsiveness at all.
 
K

Ken Slovak

Before you do that, give us InfoStores in Redemption so I can finally stop
using CDO 1.21 :)
 
D

Dmitry Streblechenko \(MVP\)

I do too :)
I am trying to fix a couple of (obscure) outstanding issues so that I can
post an update (long overdue, without the stores exposed). Next version
after that (about 90% complete already) will support the Session and Store
objects.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
K

Ken Slovak

Ah. Excellent :)

Want a list of exactly what I want? It would be critical to support
GetFolder and allow the result to be RootFolder. Once I have that I can get
to various hidden folders.
 
D

Dmitry Streblechenko \(MVP\)

Yep, I'd love the list.
The root non-IPM folder will of course be exposed, otherwise the library
will be severely crippled.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
K

Ken Slovak

In addition to what we discussed about folder.delete last night I'll come up
with a list and ping you off list.
 
Top