EnumSystemCodePages
This function enumerates the code pages that are either installed on or supported by a system.
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:
- ERROR_INVALID_PARAMETER
- ERROR_BADDB
- ERROR_INVALID FLAGS
Remarks
The CP_INSTALLED and CP_SUPPORTED flags are mutually exclusive.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.0 and later | Winnls.h | Coreloc.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.