|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
PidTagIpmContactEntryId Canonical Property
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Contains the EntryID of the Outlook Contacts folder.
This property is stored in the Inbox folder and in the root folder of the message store. To access the property on a specific message store, do the following:
First, look for the property in the Inbox folder. Use IMsgStore::GetReceiveFolder to obtain a reference to the EntryID for the Inbox folder.
If IMsgStore::GetReceiveFolder is successful, then use the reference to the EntryID of the Inbox and IMsgStore::OpenEntry to open the Inbox and obtain a reference to an IMAPIFolder object.
If IMsgStore::OpenEntry is successful, then use the returned reference to the IMAPIFolder object and IMAPIProp::GetProps to obtain the desired property.
If Step 1, 2, or 3 fails, look for the property in the root folder. To do that, use IMsgStore::OpenEntry, specifying NULL for lpEntryID, to open the root folder of the message store and obtain a reference to the IMAPIFolder object.
If opening the root folder is successful, then use the returned reference to the IMAPIFolder object and IMAPIProp::GetProps to obtain the desired property.