View Single Post
  #3  
Old November 7th 06, 11:33 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default Given an ENTRYID, how to display Contact window?

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:isplay

Dmitry Streblechenko wrote:
See http://windowssdk.msdn.microsoft.com...81(VS.80).aspx
Extended MAPI questions are better answered in the programmer.messaging
newsgroup.

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

wrote in message
ps.com...
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.


Ads