Export (0) Print
Expand All
Expand Minimize

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

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:
© 2014 Microsoft