Platform SDK: International Features

EnumUILanguages

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
);

Parameters

pUILangEnumProc
[in] Pointer to an application defined–callback function. The EnumUILanguages function enumerates language identifiers by making repeated calls to this callback function. For more information, see EnumUILanguagesProc.
dwFlags
[in] Reserved. Must be zero.
lParam
[in] Application-defined value passed to the callback function. This parameter can be used for error checking.

Return Value

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:

Remarks

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.

Requirements

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

See Also

National Language Support Overview, National Language Support Functions, EnumUILanguagesProc, GetSystemDefaultUILanguage, GetUserDefaultUILanguage