Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get the Store reference in Outlook Object Model and find store is primary or delegate

0 views
Skip to first unread message

Amit

unread,
Jun 18, 2009, 6:57:37 AM6/18/09
to
Hi All,
Is it possible to get the reference to IMsgStore using OOM and then
find out if this store is primary or delegated store?

Thanks in advance for your help.

-Amit

Tom

unread,
Jun 18, 2009, 12:48:20 PM6/18/09
to
Yes it is possible to get a reference to the message store.

"Amit" <ver_a...@yahoo.com> wrote in message
news:9dc3bb6d-4a5f-419f...@d25g2000prn.googlegroups.com...

Dmitry Streblechenko

unread,
Jun 18, 2009, 1:03:12 PM6/18/09
to
Outlook 2007: Store object in OOM exposed the MAPIOBJECT property, whic hyou
can QI fro IMsgStore.
Otherwise you can use MAPIFolder.StoreID property to open the store using
IMAPISession.OpenMsgStore. IAMPISession can be retrieved from
Namespace.MAPIOBJECT in OOM (all versions of Outlook).

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


"Amit" <ver_a...@yahoo.com> wrote in message
news:9dc3bb6d-4a5f-419f...@d25g2000prn.googlegroups.com...

0 new messages