MAPI_ProfileGetAddress()

Examples


The MAPI_ProfileGetAddress() function retrieves the name and e-mail address from the profile for the current user.

This function requires Extended MAPI support.


Syntax

MAPI_ProfileGetAddress(name, email {, address_type})

Parameters

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:

[spacer]

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.


Return value

A boolean. True indicates the display name and e-mail address were successfully returned, while false indicates they were not.


Documentation Feedback