INT GetContentDigest( |
|
LPTSTR lpszDigest, |
|
|
INT cchDigest |
|
); |
INT GetContentDigest( |
|
CString& strDigest |
|
); |
The GetContentDigest method returns an encoded digest of
the message.
Parameters
- lpszDigest
- Pointer to a string buffer to contain the MD5 digest for the
specified message. An alternate form of this method accepts a
CString object which will contain the digest when the method
returns.
- cchDigest
- Maximum length of the digest string, in bytes.
Return Value
If the method succeeds, the return value is the length of the
message digest string. A value of zero specifies that there is no MD5
digest for the current message. If the method fails, the return value
is MIME_ERROR. To get extended error information, call
GetLastError.
Remarks
This method returns the value of the Content-MD5 header field in
the main body of the message. If the header exists, it contains the
MD5 digest for the message as defined in RFC 1864.
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.
|