EnumSystemLocales (Windows CE 5.0)

Windows CE 5.0
Send Feedback

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

BOOL EnumSystemLocales(
  LOCALE_ENUMPROC lpLocaleEnumProc, 
  DWORD dwFlags


[in] Pointer to an application-defined callback function. The EnumSystemLocales function enumerates locales by making repeated calls to this callback function. For more information, see the EnumLocalesProc callback function.
[in] Value that specifies the locale identifiers to enumerate. The following table shows the values this parameter can take.
LCID_INSTALLEDEnumerate only installed locale identifiers.
LCID_SUPPORTEDEnumerate all supported locale identifiers.

Return Values

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

ERROR_INVALID_PARAMETERA parameter is incorrect.
ERROR_BADDBThe configuration registry database is corrupt.


The LCID_INSTALLED and LCID_SUPPORTED flags are mutually exclusive.

For more information about LCID, see National Language support (NLS) Locale Identifiers.


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

See Also

National Language support (NLS) Locale Identifiers | EnumLocalesProc

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.

© 2016 Microsoft