Platform SDK: Exchange Server

HrGWResolveAddress

The HrGWResolveAddress function determines the entry identifier from the address of a recipient.

Quick Info

Header file: ADDRLKUP.H
Library: ADDRLKUP.LIB
Unicode: Yes

HRESULT HrGWResolveAddress(
  LPABCONT lpGalABCont,  
  LPTSTR lpszAddress,    
  BOOL * lpfMapiRecip,   
  ULONG * lpcbEntryID,   
  LPENTRYID * lppEntryID 
);
 

Parameters

lpGalABCont
Input parameter. Points to a MAPI IABContainer interface containing the address book.
lpszAddress
Input parameter. Points to a proxy address.
lpfMapiRecip
Output parameter. Indicates whether a MAPI recipient has been added.
lpcbEntryID
Output parameter. Points to the count of bytes in the entry identifier.
lppEntryID
Output parameter. Points to the entry identifier.

Return Values

See Return Values.

Remarks

The HrGWResolveAddress function is called for each message recipient. It uses each recipient's physical address to look up their recipient entry identifier (PR_ENTRYID). For more information on this function, see Using the Address Lookup Functions, Implementing Address Lookup Functions, and Mapping Inbound Addresses in the Gateway Programmer's Reference.

For information on the IABContainer interface and the PR_ENTRYID property, see the MAPI Programmer's Reference.

See Also

HrGWResolveProxy