Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.


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.

Deprecated. Returns the address types that can be handled by all of the transport providers in the session.

HRESULT EnumAdrTypes(
  ULONG ulFlags,
  ULONG FAR * lpcAdrTypes,
  LPTSTR FAR * FAR * lpppszAdrTypes


[in] A bitmask of flags that indicates the format for the returned address types. The following flag can be set:


The address types are in Unicode format. If the MAPI_UNICODE flag is not set, the address types are in ANSI format.


[out] A pointer to a count of address types pointed to by the lpppszAdrTypes parameter.


[out] A pointer to an array of pointers to address types.


The address types were successfully retrieved.

The IMAPISession::EnumAdrTypes method returns a list of the address types that can be handled by all of the active transport providers in the session. The address types for transport providers that are not currently loaded are not included in the list. Transport providers register to handle one or more address types when MAPI calls their IXPLogon::AddressTypes method.

Call MAPIFreeBuffer to release the string array pointed to by the lpppszAdrTypes parameter.

© 2015 Microsoft