Article ID: 126658
Article Last Modified on 10/30/2006
/* start code for MAPIAddress() call */
#include <stdio.h>
#include <windows.h>
#include <mapi.h>
lpMapiRecipDesc lppNewRecips;
int main(void)
{
LHANDLE lhSession;
ULONG rc, lpnNewRecips = 0;
rc = MAPILogon(0L, "", "", MAPI_LOGON_UI, 0L, &lhSession);
rc = MAPIAddress(lhSession, 0L, NULL, 0L, NULL, 0L, NULL, 0L, 0L, \
&lpnNewRecips, &lppNewRecips);
if( rc != SUCCESS_SUCCESS )
printf("MAPIAddress failed with %d", rc);
rc=MAPIFreeBuffer(lppNewRecips);/* free the memory used by MAPIAddress
*/
rc = MAPILogoff(lhSession, 0L, 0L, 0L);
return (0);
}
/* end code */
For more information, please see the Microsoft Mail "Technical Reference,"
pages 96-98.
Additional query words: 3.00 3.20 MAPI address function
Keywords: KB126658