MimeGetMessageText Function  
 
LONG WINAPI MimeGetMessageText(
  HMESSAGE hMessage,  
  LONG nOffset,  
  LPTSTR lpszBuffer,  
  LONG cbBuffer  
);

The MimeGetMessageText function copies the text of the current message part to the specified buffer.

Parameters

hMessage
Handle to the message.
nOffset
The byte offset from the beginning of the message. A value of zero specifies the first character in the body of the message part.
lpszBuffer
A pointer to the buffer that will receive a copy of the message text. Note that the buffer is not null-terminated and will typically contain multiple lines of text.
cbBuffer
The maximum number of bytes to copy into the buffer.

Return Value

If the function succeeds, the return value is number of bytes copied into the buffer. If the function fails, the return value is MIME_ERROR. To get extended error information, call MimeGetLastError.

Requirements

Client: Requires Windows 7, Windows Vista or Windows XP.
Server: Requires Windows Server 2008 or Windows Server 2003.
Header: Include cstools7.h.
Library: Use csmsgav7.lib.
Unicode: Implemented as Unicode and ANSI versions.

See Also

MimeAppendMessageText, MimeClearMessageText, MimeCompareMessageText, MimeExportMessage, MimeImportMessage, MimeSetMessageText