Question:
1. Which MAPI object and the function in message store is called when user
submit the subscription in the dialog box?
2. How could I intercept the event when user clicking on the link or
subscription dialog box?
This question is relative the one
http://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.outlook.program_addins&mid=d990b11c-5893-41e2-a158-cd3506768b1f But I cannot find a solution in COM Addin way.
Thanks!
--
Xingren
--
WBR
Henry
If I registers a service in
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Outlook\SchedulingInformation\SharedCalendarSupport]
(for OL2003), will an event handler function (what is it) be called when I
click on "OK" button of "Open a Shared Calendar" dialog box of OL2003?
We actually have implemented our message store to handle Outlook default
(Calendar, Mail, Contact, Address book and etc) folder messaging, and provide
shared calendar function by our own UI (by COM Addin). We only need to hook
up our subscription function with Outlook 2003 "Open a Shared Calendar..."
link. Could you give me more hint here?
Thanks!
--
Xingren
>
> If I registers a service in
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Outlook\SchedulingInformation\SharedCalendarSupport]
> (for OL2003), will an event handler function (what is it) be called when I
> click on "OK" button of "Open a Shared Calendar" dialog box of OL2003?
No,
>
> We actually have implemented our message store to handle Outlook default
> (Calendar, Mail, Contact, Address book and etc) folder messaging, and
> provide
> shared calendar function by our own UI (by COM Addin). We only need to
> hook
> up our subscription function with Outlook 2003 "Open a Shared Calendar..."
> link. Could you give me more hint here?
I used my utility MAPISpy http://mapispy.blogspot.com/2005/07/mapi-spy.html
To investigate how Outlook implements 'Open a Shared Calendar'
It requests IMailUser for recipient.
After that Requests some properties (PR_EMS_AB_HOME_MDB as far as i remember
and some others)
After successful retrieving of propeties if uses IExchangeManageStore
interface to create
store EntryID,
Opens store via obtained EntryID and finds default calendar for that store.
So after you register your service in
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Outlook\SchedulingInformation\SharedCalendarSupport]
Outlook tries to work with it as it is Exchange provider (i mean shared
calendar support)
Thank you very much for your investigation!