Freigeben über


QPDecode

Decodes a string of data that has been encoded in quoted-printable format such as by a previous call to QPEncode.

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

Parameters

  • pbSrcData
    The buffer containing the data to be decoded.

  • nSrcLen
    The length in bytes of pbSrcData.

  • szDest
    Caller-allocated buffer to receive the decoded data.

  • pnDestLen
    Pointer to a variable that contains the length in bytes of pbDest. If the function succeeds, the variable receives the number of bytes written to the buffer. If the function fails, the variable receives the required length in bytes of the buffer.

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

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

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

Requirements

Header: atlenc.h

See Also

Concepts

ATL Concepts

ATL Reference

ATL Functions Alphabetical Reference

QPDecodeGetRequiredLength

QPEncode

QPEncodeGetRequiredLength