Nonrecipient (non-address book) directory attributes are defined by Microsoft Exchange in the MAPITAGS.H file.
To open a nonrecipient attribute, first obtain its property tag. You can either call the MAPI method IMAPIProp::GetIDsFromNames or look up the property tag in the following table, which lists property tags defined in MAPITAGS.H. Then, call the IMAPIProp::GetProps method and pass that property tag.
Properties declared in MAPITAGS.H
Directory Attribute Name | Property Name |
---|---|
Address | PR_STREET_ADDRESS |
Assistant-Name | PR_ASSISTANT |
Comment | PR_COMMENT |
Common-Name | PR_MHS_COMMON_NAME |
Company | PR_COMPANY_NAME |
Department | PR_DEPARTMENT_NAME |
Display-Name-Printable | PR_7BIT_DISPLAY_NAME |
Given-Name | PR_GIVEN_NAME |
Initials | PR_INITIALS |
Locality-Name | PR_LOCALITY |
Mail-nickname | PR_ACCOUNT |
MAPI-Recipient | PR_SEND_RICH_INFO |
Physical-Delivery-Office-Name | PR_OFFICE_LOCATION |
Post-Office-Box | PR_POST_OFFICE_BOX |
Postal-Code | PR_POSTAL_CODE |
State-Or-Province-Name | PR_STATE_OR_PROVINCE |
Surname | PR_SURNAME |
Telephone-Assistant | PR_ASSISTANT_TELEPHONE_NUMBER |
Telephone-Fax | PR_PRIMARY_FAX_NUMBER |
Telephone-Home | PR_HOME_TELEPHONE_NUMBER |
Telephone-Home2 | PR_HOME2_TELEPHONE_NUMBER |
Telephone-Mobile | PR_MOBILE_TELEPHONE_NUMBER, PR_CELLULAR_TELEPHONE_NUMBER |
Telephone-Office1 | PR_BUSINESS_TELEPHONE_NUMBER, PR_OFFICE_TELEPHONE_NUMBER |
Telephone-Office2 | PR_BUSINESS2_TELEPHONE_NUMBER, PR_OFFICE2_TELEPHONE_NUMBER |
Telephone-Pager | PR_PAGER_TELEPHONE_NUMBER, PR_BEEPER_TELEPHONE_NUMBER |
Telex-Number | PR_TELEX_NUMBER |
Text-Country | PR_COUNTRY |
Title | PR_TITLE |
User-Cert | PR_USER_CERTIFICATE |
When-Changed | PR_LAST_MODIFICATION_TIME |
When-Created | PR_CREATION_TIME |