HrTextToRTFCompressed

The HrTextToRTFCompressed function converts ANSI text to RTF compressed text.

Quick Info

Header file: EDKUTILS.H
Library: EDKUTILS.LIB

HRESULT HrTextToRTFCompressed(
  ULONG cchText,         
  LPSTREAM lpText,       
  ULONG cAttachments,    
  ULONG * rgiRendering,  
  LPMESSAGE lpMsg        
);
 

Parameters

cchText
Input parameter. Number of characters of text.
lpText
Input parameter. Points to the plain text stream.
cAttachments
Input parameter. Number of message attachments.
rgiRendering
Input parameter. Rendering positions of the attachments.

Note The rendering positions must fall on a space in the text stream. If not, HrTextToRTFCompressed returns E_FAIL.

lpMsg
Input parameter. Points to an IMessage interface containing the MAPI message that receives the converted text.

Return Values

See Return Values.

Remarks

For more information on this function, see Saving ANSI Text as a Message Property in RTF.

See Also

HrRTFCompressedToText, HrTextFromCompressedRTFStreamEx, RTFSYNCINFO