How can know if I open an appoinment in other's calendar?

H

hjphy

Hi everyone, I am developing an Outlook COM Add-in. I meet such a problem: when I open an appoinment, how can know if this appoinment is opened in other's calendar or my own calendar?
 
K

Ken Slovak - [MVP - Outlook]

What version of Outlook? What language?

Each item has a Parent property, which is the folder the item lives in. So
item.Parent = some MAPIFolder object.

The easiest way if you are using Outlook 2007 is to get the folder.StoreID
and compare it to StoreID of your default Calendar folder using the
NameSpace.CompareEntryIDs() method. If you are using CDO 1.21 or Extended
MAPI or a MAPI wrapper such as Redemption (www.dimastr.com/redemption) they
all have equivalent methods.
 
D

Dmitry Streblechenko

Strinctly speaking, you would need to read the PR_MDB_PROVIDER property
(0x34140102) and see if its value is pbExchangeProviderDelegateGuid.
Redemption exposes the store kind through the RDOStore.StoreKind property
(skDelegateExchangeMailbox is what you need), and the parent store can be
retrieved from the RDOMail.Store property.

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

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