Platform SDK: International Features |
The EnumUILanguages function enumerates the UI languages that are available on the system.
BOOL EnumUILanguages( UILANGUAGE_ENUMPROC pUILangEnumProc, // callback function DWORD dwFlags, // reserved LONG_PTR lParam // callback parameter );
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 function enumerates the UI languages by passing language identifiers, one at a time, to an application defined–callback function. The EnumUILanguages function continues to pass language identifiers to the callback function until the last language identifier is found or the callback function returns FALSE. For more information, see the EnumUILanguagesProc 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, EnumUILanguagesProc, GetSystemDefaultUILanguage, GetUserDefaultUILanguage