EnumSystemCodePages

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

At a Glance

Header file: Winnls.h
Windows CE versions: 1.0 and later

Syntax

BOOL EnumSystemCodePages(
CODEPAGE_ENUMPROC
lpCodePageEnumProc, DWORD dwFlags);

Parameters

lpCodePageEnumProc

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

dwFlags

[in] Specifies the code pages to enumerate. This parameter can be one of the following values:

Value Description
CP_INSTALLED Enumerate only installed code pages.
CP_SUPPORTED Enumerate all supported code pages.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError. Possible values for GetLastError include the following:

Remarks

The CP_INSTALLED and CP_SUPPORTED flags are mutually exclusive.