IMAPISession::EnumAdrTypes
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
);
Parameters
ulFlags
[in] A bitmask of flags that indicates the format for the returned address types. The following flag can be set:- MAPI_UNICODE
The address types are in Unicode format. If the MAPI_UNICODE flag is not set, the address types are in ANSI format.
- MAPI_UNICODE
lpcAdrTypes
[out] A pointer to a count of address types pointed to by the lpppszAdrTypes parameter.lpppszAdrTypes
[out] A pointer to an array of pointers to address types.
Return Value
- S_OK
The address types were successfully retrieved.
Remarks
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.
Notes to Callers
Call MAPIFreeBuffer to release the string array pointed to by the lpppszAdrTypes parameter.