Share via


MimeOleGetCodePageCharset function

Do no use. Finds a character set for the specified code page.

Syntax

HRESULT MimeOleGetCodePageCharset(
  _In_  CODEPAGEID  cpiCodePage,
  _In_  CHARSETTYPE ctCsetType,
  _Out_ LPHCHARSET  phCharset
);

Parameters

cpiCodePage [in]

Type: CODEPAGEID

Specifies the code page ID. For more information, see CODEPAGEID.

ctCsetType [in]

Type: CHARSETTYPE

Specifies a value from CHARSETTYPE that indicates the type of character set.

phCharset [out]

Type: LPHCHARSET

Receives the handle of the character set.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that phCharset is NULL.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.
E_FAIL
Indicates that there is no default character set.
MIME_E_NOT_FOUND
Indicates that cpiCodePage is invalid or cannot be found.
MIME_E_NO_DATA
Indicates that no data is associated with the character set.
MIME_E_INVALID_CHARSET_TYPE
Indicates that ctCsetType is invalid.

Remarks

There are three different character set types for every code page, each type having a different purpose. CHARSETTYPE enumerates these character set types.

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)