The MAPI_ProfileGetAddress() function retrieves the name and e-mail address from the profile for the current user.
This function requires Extended MAPI support. |
MAPI_ProfileGetAddress(name, email {, address_type})
• name – A returned string containing the display name for the e-mail address of the current user.
• email – A returned string containing the e-mail address of the current user.
• address_type – An optional inout integer parameter that specifies the type of address to retrieve. The value corresponds to one of the following constants:
Constant |
Description |
---|---|
MAPI_ADDRESS_EXCHANGE |
The Exchange e-mail address is returned. |
MAPI_ADDRESS_SMTP |
The SMTP e-mail address is returned. |
MAPI_DEFAULT_ADDRESS |
The default format of the e-mail address is returned. The value of the address_type parameter will be set to the constant indicating the address type returned. |
A boolean. True indicates the display name and e-mail address were successfully returned, while false indicates they were not.