Поделиться через


EnumSystemCodePages (Windows Embedded CE 6.0)

1/6/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 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 Value

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.

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

See Also

Reference

EnumCodePagesProc

Other Resources

National Language Support (NLS) Functions