View Single Post
  #2  
Old April 1st 09, 02:35 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to get shared calendar's owner info

Where would this shared calendar folder be located, in another Exchange
mailbox or a PST file or what?

There really isn't any information that's readily available in cases like
this, the Exchange properties for store owner and mailbox name won't be
there unless the folder is opened as part of a mailbox opened as part of the
Outlook profile.

A hack would get the StoreID of the shared folder and massage that hex
string into an array of ASCII bytes. Part of that array would have the
Exchange distinguished name of the folder owner that can be decoded from the
array. From there you'd need to translate the Exchange DN into a recipient.

You can see the effect by looking at the StoreID property using a MAPI
viewer such as MFCMAPI from MS or OutlookSpy (www.dimastr.com) and see what
that looks like.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Adi" wrote in message
...
Hi,

I have created an Outlook 2003 addin using VSTO 2005 SE.

I need to get shared calendar's owner info. Suppose I have opened a
shared calendar of UserA in Outlook. Now I create a calendar item into
the shared calendar manually. I need to run a logic based on UserA's
display name/email address.

How do we get UserA details programmatically?

Thanks,
Aditya


Ads