Specifies the type of an entry, with respect to how the entry should be displayed in a row in a table for the Global Address List.
|Exposed by:||Address book contents table|
PR_DISPLAY_TYPE_EX specifies the type of an entry, with respect to how it should be displayed in the Global Address List. It provides additional information that cannot be represented in PR_DISPLAY_TYPE.
|The values of both PR_DISPLAY_TYPE and PR_DISPLAY_TYPE_EX begin with "DT_" and are defined in mapitags.h. All values not documented are reserved for MAPI. Client applications must not define any new values and must be prepared to deal with an undocumented value.|
There are some macros that can help determine attributes of an object such as whether it is local, remote, or security-controlled. These macros include:
The following are a few notes about how to use these macros.
- To check whether an entry is a remote entry in another forest, apply the DTE_IS_REMOTE_VALID macro to to the value of PR_DISPLAY_TYPE_EX to check whether the DTE_FLAG_REMOTE_VALID flag is set in the entry. If it is a remote entry, you can then find out the type of the remote entry by using the DTE_REMOTE macro.
- In both single-forest and cross-forest configurations, when PR_DISPLAY_TYPE has the value of DT_DISTLIST, and DTE_IS_REMOTE_VALID is false, applying the macro DTE_LOCAL to the value of PR_DISPLAY_TYPE_EX can let you further identify the type of the object as either DT_DISTLIST (a distribution list) or DT_SEC_DISTLIST (a security distribution list).
- If you apply the macro DTE_LOCAL to the value of PR_DISPLAY_TYPE_EX and it returns the type DT_REMOTE_MAILUSER, then the entry is a remote entry.
- In a single forest or in a cross-forest configuration where replication is controlled by an Access Control List (ACL), you can use the DTE_IS_ACL_CAPABLE macro to determine whether an entry is a security principal.
In a cross-forest configuration, PR_DISPLAY_TYPE has the value of DT_REMOTE_MAILUSER. Applying the macro DTE_REMOTE to the value of PR_DISPLAY_TYPE_EX can let you obtain the type of the remote entry. The possible types of remote entry are the following:
|Type of Remote Entry||Description|
|DT_AGENT||Dynamic distribution list.|
|DT_EQUIPMENT||Equipment, for example, a printer or a projector.|
|DT_MAILUSER||User with a mailbox.|
|DT_REMOTE_MAILUSER||An address list entry in the Global Address List.|
|DT_SEC_DISTLIST||Security distribution list.|
In both a single forest and in a cross-forest configuration, when PR_DISPLAY_TYPE has the value of DT_DISTLIST and DTE_IS_REMOTE_VALID is false, applying the DTE_LOCAL macro to the value of PR_DISPLAY_TYPE_EX can let you obtain the type of the distribution list. The possible types of distribution list are the following:
|Type of Distribution List||Description|
|DT_SEC_DISTLIST||Security distribution list|