Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MimeOleRfc1522Encode
Collapse the table of content
Expand the table of content

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

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

Community Additions

ADD
Show:
© 2015 Microsoft