Given an ENTRYID, how to display Contact window?

  • Thread starter Thread starter skylars
  • Start date Start date
S

skylars

Say I've found a particular contact I'm interested in via Extended
MAPI. At that point I'd have its IMAPIProp interface and have access to
PR_ENTRYID.

I know ContactItem.Display will pop up a Contact window, but how can I
get from my IMAPIProp*/ENTRYID to a ContactItem? I have tried
IMAPISession::OpenEntry with the ENTRYID, but that just returns an
interface to the object - it doesn't display the actual Outlook Contact
window.

Any help would be appreciated. Thank you.
 
Thanks for the reply Dmitry.

This one was of those things where I found the solution shortly after
posting. :) It turned out to be easy. I wanted to post the info in case
someone finds it helpful later.

Outlook::_Application::GetNamespace("MAPI")
_NameSpace::GetItemFromID( bstrEntryID )
_ContactItem::Display
 
Back
Top