Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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
); 

Parameters

lpLocaleEnumProc
[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.
dwFlags
[in] Value that specifies the locale identifiers to enumerate. The following table shows the values this parameter can take.
ValueDescription
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.

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

Remarks

The LCID_INSTALLED and LCID_SUPPORTED flags are mutually exclusive.

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

Requirements

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.


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.