Compartilhar via


EnumSystemLocales (Windows CE 5.0)

Send Feedback

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

BOOLEnumSystemLocales(LOCALE_ENUMPROClpLocaleEnumProc, DWORDdwFlags);

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.
    Value Description
    LCID_INSTALLED Enumerate only installed locale identifiers.
    LCID_SUPPORTED Enumerate 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.

Value Description
ERROR_INVALID_PARAMETER A parameter is incorrect.
ERROR_BADDB The 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.