MAPI and Microsoft Exchange Server define entry identifiers for a number of special folders. You can use them to directly open these types of folders when calling the IMsgStore::OpenEntry method. The entry identifiers are properties on the information store object that contains the folder of interest.
No special entry identifier is declared for a folder’s Inbox. For information on how to locate an Inbox, see Opening the Inbox.
One advantage to using entry identifiers is that you can use them to open special folders in any installation of Microsoft Exchange Server, regardless of the language in use. Special folders are listed in the following tables under their English names.
A second advantage is that using an entry identifier is a faster way to open a special folder than using the HrMAPIFindFolderEx function.
Entry Identifiers of Special Folders (Declared by MAPI)
Entry Identifier | Folder Name |
---|---|
Folders in information stores | |
PR_IPM_SUBTREE_ENTRYID | IPM Subtree |
PR_IPM_OUTBOX_ENTRYID | Outbox |
PR_IPM_WASTEBASKET_ENTRYID | Deleted Items |
PR_IPM_SENTMAIL_ENTRYID | Sent Items |
PR_VIEWS_ENTRYID | Views |
PR_COMMON_VIEWS_ENTRYID | Common Views |
PR_FINDER_ENTRYID | Finder |
Entry identifiers in the preceding table are declared by MAPI in the MAPITAGS.H file. The entry identifiers in the following table are declared by Microsoft Exchange Server in the EDKMDB.H file.
Entry Identifiers of Selected Special Folders (Declared by Microsoft Exchange Server)
Entry Identifier | Folder Name |
---|---|
Folders in Private (Mailbox) Information Stores | |
PR_SCHEDULE_FOLDER_ENTRYID | Schedule |
PR_IPM_DAF_ENTRYID | Deferred Action |
Folders in Public Information Stores | |
PR_IPM_PUBLIC_FOLDERS_ENTRYID | IPM Subtree\All Public Folders |
PR_IPM_FAVORITES_ENTRYID | IPM Subtree\Favorites |
PR_NON_IPM_SUBTREE_ENTRYID | Non-IPM Subtree |
PR_ADDRBOOK_FOR_LOCAL_SITE_ENTRYID | Microsoft internal use |
PR_EFORMS_FOR_LOCALE_ENTRYID | Microsoft internal use |
PR_EFORMS_REGISTRY_ENTRYID | EFORMS Registry |
PR_FREE_BUSY_FOR_LOCAL_SITE_ENTRYID | Microsoft internal use |
PR_OFFLINE_ADDRBOOK_ENTRYID | Offline Address Book |
PR_SPLUS_FREE_BUSY_ENTRYID | Schedule+ Freebusy |
Folders in Gateway-Specific Information Stores | |
PR_GW_MTSIN_ENTRYID | MTS-IN |
PR_GW_MTSOUT_ENTRYID | MTS-OUT |
Other Folders | |
PR_HEADER_FOLDER_ENTRYID | Microsoft internal use |
PR_DEFAULT_VIEW_ENTRYID | Microsoft internal use |