Platform SDK: International Features

EnumLanguageGroupLocalesProc

The EnumLanguageGroupLocalesProc function is an application defined–callback function. It is called by the EnumLanguageGroupLocales function.

The LANGGROUPLOCALE_ENUMPROC type defines a pointer to this callback function. EnumLanguagesGroupLocalesProc is a placeholder for the application defined–function name.

BOOL CALLBACK EnumLanguageGroupLocalesProc(
  LGRPID LanguageGroup,     // language-group identifier 
  LCID Locale,              // locale identifier 
  LPTSTR lpLocaleString,    // locale identifier string
  LONG_PTR lParam           // callback parameter
);

Parameters

LanguageGroup
[in] Identifier of the language group to be enumerated. This parameter 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

Locale
[in] Locale identifier.
lpLocaleString
[in] Pointer to a buffer containing a null-terminated locale identifier string.
lParam
[in] Application-defined value passed to the EnumLanguageGroupLocales function. This parameter can be used for error checking.

Return Values

To continue enumeration, the callback function should return TRUE.

To stop enumeration, the callback function should return FALSE.

Remarks

An EnumLanguageGroupLocalesProc function can carry out any desired task. An application registers an EnumLanguageGroupLocalesProc function by passing its address to the EnumLanguageGroupLocales function.

Requirements

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

See Also

National Language Support Overview, National Language Support Functions, EnumLanguageGroupLocales, EnumSystemLanguageGroups