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 codeDescription
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

Minimum supported server

Windows Server 2003

Product

Outlook Express 6.0

Header

Mimeole.h

Library

Inetcomm.lib

DLL

Inetcomm.dll (version 6.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2011

Show: