HrNDRCreate

The HrNDRCreate function creates a nondelivery report.

Quick Info

Header file: GWREPORT.H
Library: GWREPORT.LIB

HRESULT HrNDRCreate(
  LPADRBOOK lpAdrBook,   
  LPMAPIFOLDER lpFolder, 
  LPMESSAGE lpMessage,   
  LPADRLIST lpAdrList,   
  ULONG cProps,          
  LPSPropValue lpProps,  
  LPMESSAGE * lppReport  
);
 

Parameters

lpAdrBook
Input parameter. Points to a MAPI IAddrBook interface containing the address book.
lpFolder
Input parameter. Points to a MAPI IMAPIFolder interface containing the folder where the message originated.
lpMessage
Input parameter. Points to a MAPI IMessage interface containing the original message.
lpAdrList
Input parameter. Points to an array of MAPI ADRLIST structures, which contain the addresses where the message was sent.
cProps
Input parameter. Count of properties in lpProps.
lpProps
Input parameter. Points to an array of MAPI SPropValue structures, which contain the NDR properties.
lppReport
Output parameter. Points to a MAPI IMessage interface containing the NDR report.

Return Values

See Return Values.

Remarks

For more information on this function, see the HrNDRCreate function in GWREPORT.C under the GWREPORT code sample in Code Samples folder.

For information on the ADRLIST structure, IAddrBook interface, IMAPIFolder interface, IMessage interface, and SPropValue structure, see the MAPI Programmer's Reference.