accessing shared Exchange calendars and contacts

M

Mark

Outlook users can configure which shared calendars and contact groups
they want to access. How can I programmatically find out which
calendar and contact folders a user is currently accessing? I'm
referring, for example, to the calendars listed in Outlook 2007 under
"People's Calendars" and the contacts listed under "People's
Contacts". I haven't yet found a function or a MAPI folder accessible
from the top level that shows this.

I don't want to access all Exchange users' calendars, only the ones
that a particular user is accessing. The only information I've been
able to find about this is the GetSharedDefaultFolder() function, but
that requires a particular user passed as an argument, and I don't
know what users the current user is accessing.

Thanks,
Mark Cote
 
K

Ken Slovak - [MVP - Outlook]

This only applies to Outlook 2007. Look up the help on CalendarModule or
ContactsModule. You can click the link for "How to Enumerate Active Folders
in the Calendar View" for sample code for calendars, similar code would be
used to get at shared Contacts folders.

These are new to the Outlook 2007 object model, there's nothing like that
for Outlook 2003.
 
M

Mark

These are new to the Outlook 2007 object model, there's nothing like that
for Outlook 2003.

I take it it's also impossible to get at this data via Extended MAPI?

Mark
 
K

Ken Slovak - [MVP - Outlook]

What I used to do is to hack the XML for the Navigation Pane and try to find
shared folders that way, after a while those entries are often relegated out
of the XML and into undocumented entries in the profile settings in the
registry. That's the only way to do things in earlier versions of Outlook,
and Extended MAPI wouldn't help with that sort of thing.

I haven't done any examination of the new modules from a MAPI point of view,
you might want to post a question in
microsoft.public.win32.programmer.messaging (the MAPI group) for an answer
as to that.




These are new to the Outlook 2007 object model, there's nothing like that
for Outlook 2003.

I take it it's also impossible to get at this data via Extended MAPI?

Mark
 

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