HrGetRecipientList

The HrGetRecipientList function obtains the selected columns from a MAPI recipient table.

Quick Info

Header file: MSGEMIT.H
Library: MSGEMIT.LIB

HRESULT HrGetRecipientList(
  LPMESSAGE lpMessage,         
  LPSPropTagArray lpPropTags,  
  LPSRowSet * lppRows          
);
 

Parameters

lpMessage
Input parameter. Points to a MAPI IMessage interface containing the message.
lpPropTags
Input parameter. Points to the list of columns (properties) to retrieve.
lppRows
Output parameter. Points to the array of rows returned.

Return Values

See Return Values.

Remarks

To release memory that you have allocated for a MAPI SRowSet structure, use the MAPI FreeProws function. If you use the MAPIFreeBuffer function, your application will leak memory.

For information on the FreeProws function, MAPIFreeBuffer function, and IMessage interface, see the MAPI Programmer's Reference.