MimeOleRfc1522Decode function

Do not use. Decodes an RFC 1522 encoded string and, if found, stores the name of the character set contained in the encoded string.

Syntax

HRESULT MimeOleRfc1522Decode(
  _In_    LPCSTR pszValue,
  _Inout_ LPSTR  pszCharset,
  _In_    ULONG  cchmax,
  _Out_   LPSTR  *ppszDecoded
);

Parameters

pszValue [in]

Type: LPCSTR

Specifies an LPCSTR that contains the RFC 1522 encoded string.

pszCharset [in, out]

Type: LPSTR

If found, receives the name of the character set contained in the RFC 1522 encoding.

cchmax [in]

Type: ULONG

Specifies a ULONG that contains the maximum number of characters that can be copied into pszCharset.

ppszDecoded [out]

Type: LPSTR*

If not NULL, receives a pointer to an LPSTR that contains the RFC 1522 decoded string. Note: this parameter must have been initialized to point to a valid LPSTR before this call; also, user is responsible for freeing this pointer.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
S_FALSE
Indicates that the conversion failed.
E_INVALIDARG
Indicates that pszValue is NULL.
E_FAIL
Indicates that the character set was not found.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
Library
Inetcomm.lib
DLL
Inetcomm.dll (version 6.0 or later)