Platform SDK: International Features |
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 );
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
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:
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.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winnls.h; include Windows.h.
Library: Use Kernel32.lib.
National Language Support Overview, National Language Support Functions, EnumLanguageGroupLocalesProc, IsValidLanguageGroup, EnumSystemLanguageGroups