Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

QPEncode

 

Call this function to encode some data in quoted-printable format.


      inline BOOL QPEncode(
   BYTE* pbSrcData,
   int nSrcLen,
   LPSTR szDest,
   int* pnDestLen,
   DWORD dwFlags = 0 
) throw( );

pbSrcData

The buffer containing the data to be encoded.

nSrcLen

The length in bytes of the data to be encoded.

szDest

Caller-allocated buffer to receive the encoded data.

pnDestLen

Pointer to a variable that contains the length in characters of szDest. If the function succeeds, the variable receives the number of characters written to the buffer. If the function fails, the variable receives the required length in characters of the buffer.

dwFlags

Flags describing how the conversion is to be performed. See ATLSMTP_QPENCODE Flags.

Returns TRUE on success, FALSE on failure.

The quoted-printable encoding scheme is described in RFC 2045 (http://www.ietf.org/rfc/rfc2045.txt).

Requirements

Header: atlenc.h

Show: