MimeOleRfc1522Encode function

Do not use. Encodes a string using RFC 1522 format.

Syntax

HRESULT MimeOleRfc1522Encode(
  _In_  LPCSTR   pszValue,
  _In_  HCHARSET pszCharset,
  _Out_ LPSTR    *ppszEncoded
);

Parameters

pszValue [in]

Type: LPCSTR

Specifies a LPCSTR that contains the string to encode.

pszCharset [in]

Type: HCHARSET

Specifies the handle of the character set to use to encode the string.

ppszEncoded [out]

Type: LPSTR*

Receives a pointer to an LPSTR that contains the RFC 1522 encoded string. Note: this variable must have been initialized to point to a valid LPSTR before this call. Note: on success, user is responsible for freeing this pointer.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that a pointer parameter is NULL.
MIME_E_INVALID_HANDLE
Indicates an invalid handle.
E_FAIL
Indicates that the string could not be converted, or that RFC 1522 encoding is not needed because there are no 8-bit characters in the string.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.

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)