MAPIDETAILS callback function (mapi.h)
[The use of this function is discouraged. It may be altered or unavailable in subsequent versions of Windows.]
The MAPIDetails function displays a dialog box containing the details of a selected address list entry.
Syntax
MAPIDETAILS Mapidetails;
ULONG Mapidetails(
[in] LHANDLE lhSession,
[in] ULONG_PTR ulUIParam,
[in] lpMapiRecipDesc lpRecip,
[in] FLAGS flFlags,
ULONG ulReserved
)
{...}
Parameters
[in] lhSession
Session handle that represents a Simple MAPI session or zero. If the value of the lhSession parameter is zero, MAPI logs on the user and creates a session that exists only for the duration of the call. This temporary session can be an existing shared session or a new one. If additional information is required from the user to successfully complete the logon, a dialog box is displayed.
[in] ulUIParam
Parent window handle or zero, indicating that if a dialog box is displayed, it is application modal. If the ulUIParam parameter contains a parent window handle, it is of type HWND (cast to a ULONG_PTR). If no dialog box is displayed during the call, ulUIParam is ignored.
[in] lpRecip
Pointer to the recipient for which details are to be displayed. MAPIDetails ignores all members of this MapiRecipDesc structure except the ulEIDSize and lpEntryID members. If the value of ulEIDSize is nonzero, MAPIDetails resolves the recipient entry. If the value of ulEIDSize is zero, MAPIDetails returns the MAPI_E_AMBIGUOUS_RECIP value.
[in] flFlags
Bitmask of option flags. The following flags can be set.
ulReserved
Reserved; must be zero.
Return value
This function returns one of the following values.
Return code | Description |
---|---|
|
The dialog box could not be displayed because the ulEIDSize member of the structure pointed to by the lpRecips parameter was zero. |
|
One or more unspecified errors occurred. No dialog box was displayed. |
|
There was insufficient memory to proceed. No dialog box was displayed. |
|
The recipient specified in the lpRecip parameter was unknown or the recipient had an invalid ulEIDSize value. No dialog box was displayed. |
|
There was no default logon, and the user failed to log on successfully when the logon dialog box was displayed. No dialog box was displayed. |
|
The operation was not supported by the underlying messaging system. |
|
The user canceled either the logon dialog box or the details dialog box. |
|
The call succeeded and the details dialog box was displayed. |
Remarks
The MAPIDetails function presents a dialog box that shows the details of a particular address list entry. The display name and address are the minimum attributes that are displayed in the dialog box; more information can be shown, depending on the address book provider. The details dialog box cannot be suppressed, but the caller can request that it be read-only or modifiable.
Details can only be shown for resolved address list entries. An entry is resolved if the value of the ulEIDSize member of the MapiRecipDesc structure is nonzero. Entries are resolved when they are returned by the MAPIAddress or MAPIResolveName functions and as the result being recipients of read mail.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | mapi.h |