Platform SDK: International Features

EnumLanguageGroupLocales

The EnumLanguageGroupLocales function enumerates the locales in a specified language group.

BOOL EnumLanguageGroupLocales ( 
  LANGGROUPLOCALE_ENUMPROC pLangGroupLocaleEnumProc, // callback function
  LGRPID LanguageGroup,                              // language-group identifier
  DWORD dwFlags,                                     // reserved
  LONG_PTR lParam                                    // callback parameter
 );

Parameters

pLangGroupLocaleEnumProc
[in] Pointer to an application defined–callback function. For more information, see the EnumLanguageGroupLocalesProc callback function.
LanguageGroup
[in] Specifies the identifier of the language group to enumerate. This can be one of the following values:

LGRPID_WESTERN_EUROPE
LGRPID_CENTRAL_EUROPE
LGRPID_BALTIC
LGRPID_GREEK
LGRPID_CYRILLIC
LGRPID_TURKISH
LGRPID_JAPANESE
LGRPID_KOREAN
LGRPID_TRADITIONAL_CHINESE
LGRPID_SIMPLIFIED_CHINESE
LGRPID_THAI
LGRPID_HEBREW
LGRPID_ARABIC
LGRPID_VIETNAMESE
LGRPID_INDIC
LGRPID_GEORGIAN
LGRPID_ARMENIAN

dwFlags
Reserved. Must be zero.
lParam
[in] Specifies a value to be passed to the callback function. This value can be used for error checking.

Return Values

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call GetLastError. GetLastError may return one of the following error codes:

Remarks

The EnumLanguageGroupLocales function enumerates locale identifiers in the specified language group by passing locale identifiers, one at a time, to an application defined–callback function. This continues until the last locale identifier is found or the callback function returns FALSE. For more information, see the EnumLanguageGroupLocalesProc callback function.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Winnls.h; include Windows.h.
  Library: Use Kernel32.lib.

See Also

National Language Support Overview, National Language Support Functions, EnumLanguageGroupLocalesProc, IsValidLanguageGroup, EnumSystemLanguageGroups