| BOOL ParseText( |
| |
LPCTSTR lpszText, |
|
| |
INT cchText |
|
| ); |
The Parse method parses the contents of the specified
buffer and adds the contents to the message.
Parameters
- lpszText
- Pointer to a string buffer which contains the text to be added to
the message contents.
- cchText
- The length of the specified buffer. If this value is -1 all of
the characters in the string will be parsed up to the terminating
null character.
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
This method is useful when the application needs to parse an
arbitrary block of text and add it to the specified message. If the
string contains header fields, the values will be added to the
message header. Once the end of the header block is detected, all
subsequent text is added to the body of the message.
To open and parse a text file which contains a MIME structured
email message, use the Open method.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csmsgv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|