- Transforms a message recipient's name as entered by a user to an unambiguous address list entry.
/// The MAPIResolveName function transforms a message recipient's name as entered by a user
/// to an unambiguous address list entry.
public static extern uint MAPIResolveName(IntPtr lhSession, IntPtr ulUIParam, string lpszName,
uint flFlags, uint ulReserved, ref MapiRecipDesc lppRecips);
MAPI User-Defined Constants:
Tips & Tricks:
For some unknown reason, you need to pass lpszName as a new object, not an existing reference, otherwise you get an AccessViolationException.
MapiRecipDesc mpd = null;
MAPIResolveName(lhSessionNull, this.Handle, new String(textbox.Text.ToCharArray()), Mapi.MAPI_DIALOG, 0, ref mpd);
Alternative Managed API:
Do you know one? Please contribute it!
MAPIResolveName - Transforms a message recipient's name as entered by a user to an unambiguous address list entry.
3/16/2007 1:59:42 PM - firstname.lastname@example.org
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and
edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).