A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Given an ENTRYID, how to display Contact window?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 20th 06, 01:09 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default Given an ENTRYID, how to display Contact window?

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.

  #2  
Old October 20th 06, 01:24 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Given an ENTRYID, how to display Contact window?

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.



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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank Outlook Contact Entries - Invalid ENTRYID was passed in... Teejay Outlook - Using Contacts 0 July 18th 06 08:37 PM
blank contact lines,cannot delete,properties:invalid ENTRYID Troy Coleman Outlook - Using Contacts 2 June 28th 06 04:50 AM
showing contact by StoreID / EntryID from favourite folders Johannes Franke Outlook - Using Contacts 6 June 8th 06 10:07 PM
showing contact by StoreID / EntryID from favourite folders Johannes Franke Outlook - Using Contacts 0 June 8th 06 04:22 PM
Distribution list window dosn't show the same as in contact window Rose Outlook - Using Contacts 5 February 26th 06 11:17 PM


All times are GMT +1. The time now is 11:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.