> Why would you want to retrieve the parent entry id through the contents or
> the hierarchy table? By definition, all items in the table will have the
> same parent entry id, which you can retrieve from the parent folder; it will
> be just PR_ENTRYID
>
> Dmitry Streblechenko (MVP)
>
http://www.dimastr.com/> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> <adam[ at ]viratech.com> wrote in message
> news:1157231325.520751.319240[ at ]b28g2000cwb.googlegroups.com...
> > The PR_PARENT_ENTRYID value of a mail item when using a MAPITable seems
> > to be its short term ID. Is there a PR_LONGTERM_ENTRYID_FROM_TABLE
> > equivalent for the parent entry ID?
> >
> > This problem only seems to be an issue for Exchange stores.
> >
> > Strangely, OutlookSpy shows a long term entry ID under
> > PR_PARENT_ENTRYID for mail items. So I'm getting different values for
> > PR_PARENT_ENTRYID from OutlookSpy and a MAPITable.
> >
> > For example, here is a PR_PARENT_ENTRYID from OutlookSpy:
> >
> > 00000000553D90F710ABF34FAF463CA7E9775B5401005CA9A01E1C105C44B3650616ED91E83A00000863EB0C0000
> >
> > and here is the same property accessed via a MAPITable:
> >
> > EF000000553D90F710ABF34FAF463CA7E9775B5482210000.
> >
> > There also does not seem to be a property of the parent folder whose
> > value is equal to the entry ID from the MAPITable.
> >
> >
> > Is there any way that I can get the long term entry ID for a mail item
> > via MAPITable? Any hints about what is going on?
> >
> > Thanks,
> > Adam
> >