Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function enumerates the code pages that are either installed on or supported by a system.

Syntax

BOOL EnumSystemCodePages(
  CODEPAGE_ENUMPROC 
lpCodePageEnumProc, 
  DWORD 
dwFlags
);

Parameters

lpCodePageEnumProc

[in] Pointer to an application-defined callback function. The EnumSystemCodePagesfunction enumerates code pages by making repeated calls to this callback function. For more information, see the EnumCodePagesProccallback function.

dwFlags

[in] Value that specifies the code pages to enumerate. The following table shows the values this parameter can take.

Value Description

CP_INSTALLED

Enumerate only installed code pages.

CP_SUPPORTED

Enumerate all supported code pages.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call the GetLastErrorfunction. The following table shows possible return values for the GetLastErrorfunction .

Value Description

ERROR_INVALID_PARAMETER

The parameter is incorrect.

Remarks

The CP_INSTALLED and CP_SUPPORTED flags are mutually exclusive.

Requirements

Header winnls.h
Library Coreloc.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also