Given an ENTRYID, how to display Contact window?

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.
 
S

skylars

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
 

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