BOOL ParseBuffer( |
|
LPCTSTR lpszBuffer, |
|
|
INT cbBuffer |
|
); |
The ParseBuffer method parses the contents of the specified
buffer and adds the contents to the message.
Parameters
- lpszBuffer
- Pointer to a buffer that contains the text to be added to the
message contents.
- cbBuffer
- The length of the specified buffer. If this value is -1, all
characters in the string up to the terminating null character will be
parsed.
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
buffer 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.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csmsgv10.lib
Unicode: Implemented as Unicode and ANSI versions.
See Also
ClearMessage,
ImportMessage,
ParseHeader
|