Platform SDK: International Features |
The EnumSystemLanguageGroups function enumerates the language groups that are either installed on or supported by a system.
BOOL EnumSystemLanguageGroups( LANGUAGEGROUP_ENUMPROC pLangGroupEnumProc, // callback function DWORD dwFlags, // language groups LONG_PTR lParam // callback parameter );
Value | Meaning |
---|---|
LGRPID_INSTALLED | Enumerate only installed language group identifiers. |
LGRPID_SUPPORTED | Enumerate all supported language group identifiers. |
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. The GetLastError function may return one of the following error codes:
The function enumerates language groups by passing language group identifiers, one at a time, to the specified application defined–callback function. This continues until the last language group identifier is found or the callback function returns FALSE. For more information, see the EnumLanguageGroupsProc 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, EnumLanguageGroupsProc, IsValidLanguageGroup, EnumLanguageGroupLocales