Platform SDK: Exchange Server

Retrieving ANSI Text from a Message Property in RTF

Retrieving ANSI text from the PR_RTF_COMPRESSED message property is unnecessary, because message text is also stored in the PR_BODY property, which is either null-terminated wide string data or null-terminated 8-bit character string data. For this reason, you can retrieve the text you need by opening the message and reading this property.

To retrieve ANSI text

  1. Call IMAPIFolder::OpenEntry on the message that contains the text in RTF format. This call creates a message object and returns a pointer (LPMESSAGE) to the message object.
  2. Call IMAPIProp::GetProps to read the PR_BODY property of the message.