EnumSystemLocales

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

At a Glance

Header file: Winnls.h
Windows CE versions: 1.0 and later

Syntax

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] Specifies the locale identifiers to enumerate. This parameter can be one of the following values:

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 GetLastError. Possible values for GetLastError include the following:

Remarks

The LCID_INSTALLED and LCID_SUPPORTED flags are mutually exclusive.