Compartir a través de


EnumSystemCodePages (Windows CE 5.0)

Send Feedback

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

BOOL EnumSystemCodePages(CODEPAGE_ENUMPROClpCodePageEnumProc, DWORDdwFlags);

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] 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 Values

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

Value Description
ERROR_INVALID_PARAMETER The parameter is incorrect.
ERROR_BADDB The configuration registry database is corrupt.
ERROR_INVALID FLAGS The flags are invalid.

Remarks

The CP_INSTALLED and CP_SUPPORTED flags are mutually exclusive.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Winnls.h.
Link Library: Coreloc.lib.

See Also

EnumCodePagesProc

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.