Condividi tramite


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

  • [in] pbSrcData
    The buffer containing the data to be decoded.

  • [in] nSrcLen
    The length in bytes of pbSrcData.

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

  • [out] pnDestLen
    Pointer to a variable that contains the length in bytes of szDest. 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.

  • [in] 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

Reference

QPDecodeGetRequiredLength

QPEncode

QPEncodeGetRequiredLength

Other Resources

ATL Concepts

ATL Reference

ATL Functions Alphabetical Reference