Article ID: 912237 - Last Review: November 22, 2007 - Revision: 2.1 How to use named properties to relate Contact Address Book entries to e-mail messages, e-mail addresses, and picture attachments in Outlook 2003On This PageINTRODUCTIONThe Contact Address Book is a feature in Microsoft Office Outlook 2003 Service Pack 2 (SP2), just as in earlier versions of Microsoft Outlook. This article describes how to use named properties to relate Contact Address Book entries to e-mail messages, e-mail addresses, and picture attachments in Outlook 2003 SP2. MORE INFORMATIONAbout the Contact Address BookThe Contract Address Book provider that is included in Outlook 2003 SP2 is contab32.dll. This provider displays information from a Contacts folder in the form of a Contact Address Book. The provider does this so that you can use the contacts in the Contact Address Book to address e-mail messages. All contacts that have an e-mail address or a fax number are represented in the Contact Address Book by a separate listing for each e-mail address or fax number. Because a contact may have up to three e-mail addresses and three fax numbers, each contact may therefore be represented by up to six separate entries in the Contact Address Book.How to relate Contact Address Book entries to e-mail messagesThe information that is in a Contact Address Book entry is a subset of the information that is in the underlying e-mail message to the contact. The following CONTAB_ENTRYID structure can be used to determine the Contact Address Book entry from which an underlying message is derived.Definition
ExampleMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. How to relate Contact Address Book entries to e-mail addressesThe only way to access the e-mail addresses in a Contact Address Book message is through the named properties on the underlying message. The properties that are documented here are read-only properties. Outlook 2003 does not support solutions that write to these properties.Definitions You can use the following constants to fill out the MAPINAMEID structure. These constants are the various fields of the structure. Collapse this table
ExampleMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. How to relate Contact Address Book entries to picturesOutlook supports a single picture for each contact. This picture is stored as an attachment in the underlying message. To determine which attachment contains the picture, use the PR_ATTACHMENT_CONTACTPHOTO property. The property that is documented here is a read-only property. Outlook does not support solutions that write to this property.Definition The PR_ATTACHMENT_CONTACTPHOTO property can be accessed as a column in the attachment table that is obtained through IMessage::GetAttachmentTable. The PR_ATTACHMENT_CONTACTPHOTO property is accessed as a property on the IAttach object. If the value of the PR_ATTACHMENT_CONTACTPHOTO property is true, the attachment contains the contact picture. The picture is stored as a .jpeg file. Use the typical MAPI methods to extract this attachment to a file. REFERENCESFor more information, visit the following Microsoft Web sites: http://msdn2.microsoft.com/en-us/library/bb905282.aspx
(http://msdn2.microsoft.com/en-us/library/bb905282.aspx)
http://msdn2.microsoft.com/en-us/library/bb820925.aspx (http://msdn2.microsoft.com/en-us/library/bb820925.aspx) http://msdn2.microsoft.com/en-us/library/bb821181.aspx (http://msdn2.microsoft.com/en-us/library/bb821181.aspx)
| Article Translations
|
Back to the top
