T
Tim s
See below for underlying goals.
Goal: Retrieve shared default folder based on an email address, in
code running outside the outlook.exe address space, on
Outlook 2002, 2003, 2007, in managed code.
Tools: Outlook Remeption 4.7; Outlook Object Model
Cant use RDOSession.GetSharedDefaultFolder() due to COM Marshalling
Bugs acccording to RDO Documentation
//snippet
1 var recipient = NameSpace.CreateRecipient
("(e-mail address removed)");
2 var sharedCalendarFolder = NameSpace.GetSharedDefaultFolder
(recipient, OlDefaultFolders.olFolderCalendar);
//NOTE: Line 2 is SLOW when on Outlook 2007 and the user is not on
Exchange, and will get a COMexception
Challenge: Fill in method
Bool IsExchangeUser(Recipient recipient)
{
//NOTE: recipient.AddressEntry and AddressEntry.GetExchangeUser()
generates security prompts
//NOTE: MAPIUtils.CreateRecipient(..) throws COMException with
message "Catastrophic Failure" randomly
}
Goal: Retrieve shared default folder based on an email address, in
code running outside the outlook.exe address space, on
Outlook 2002, 2003, 2007, in managed code.
Tools: Outlook Remeption 4.7; Outlook Object Model
Cant use RDOSession.GetSharedDefaultFolder() due to COM Marshalling
Bugs acccording to RDO Documentation
//snippet
1 var recipient = NameSpace.CreateRecipient
("(e-mail address removed)");
2 var sharedCalendarFolder = NameSpace.GetSharedDefaultFolder
(recipient, OlDefaultFolders.olFolderCalendar);
//NOTE: Line 2 is SLOW when on Outlook 2007 and the user is not on
Exchange, and will get a COMexception
Challenge: Fill in method
Bool IsExchangeUser(Recipient recipient)
{
//NOTE: recipient.AddressEntry and AddressEntry.GetExchangeUser()
generates security prompts
//NOTE: MAPIUtils.CreateRecipient(..) throws COMException with
message "Catastrophic Failure" randomly
}