TnefDecodeBuffer

This function decodes a buffer from a specified format into ASCII.

At a Glance

Header file: Tnefapi.h
Platforms: H/PC 3.0
Windows CE versions: 2.10 and later

Syntax

BOOL WINAPI TnefDecodeBuffer(INETENCODE EncodeType,
LPSTR
BufToDecode, BYTE * DecodedBuf, UINT * puiLength);

Parameters

EncodeType
[in] INETENCODE enumeration value that describes one of the following the encoding formats:
Base64
Quoted-Printable
UUEncode

BufToDecode
[in] Input buffer to decode.
DecodedBuf
[in] Pointer to the decoded buffer.
puiLength
[in/out] Pointer to an unsigned integer that contains the size of the output buffer in bytes. Returns the size of the decoded data in bytes.

Return Values

TRUE indicates success. FALSE indicates failure. To get extended error information, call the function TransportError or TransportErrorMsg.

Remarks

This function fails if the output buffer is not large enough to contain all the decoded data. When this happens, puiLength returns the size of the buffer necessary to contain the decoded data.

See Also

TnefEncodeBuffer