Platform SDK: International Features

EnumLanguageGroupsProc

An EnumLanguageGroupsProc function is an application defined–callback function. It is called by the EnumSystemLanguageGroups function.

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

BOOL CALLBACK EnumLanguageGroupsProc(
  LGRPID LanguageGroup,             // language-group identifier
  LPTSTR lpLanguageGroupString,     // language-group identifier string
  LPTSTR lpLanguageGroupNameString, // language-group name string 
  DWORD dwFlags,                    // options
  LONG_PTR  lParam                  // callback parameter
);

Parameters

LanguageGroup
[in] Language-group identifier. 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

lpLanguageGroupString
[in] Pointer to a buffer containing a null-terminated language group identifier string.
lpLanguageGroupNameString
[in] Pointer to a buffer containing a null-terminated language group name string.
dwFlags
[in] Specifies whether the language group identifier is supported or installed. This parameter can be one of the following values.
Value Meaning
LGRPIC_INSTALLED Language group identifier is installed.
LGRPIC_SUPPORTED Language group identifier is both supported and installed.

lParam
[in] Application-defined parameter passed to the EnumSystemLanguageGroups 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

This function can carry out any desired task. An application registers an EnumLanguageGroupsProc function by passing its address to the EnumSystemLanguageGroups 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, EnumSystemLanguageGroups, EnumLanguageGroupLocales