Platform SDK: International Features

GetUserDefaultUILanguage

The GetUserDefaultUILanguage function retrieves the language identifier (LANGID) for the current user language.

LANGID GetUserDefaultUILanguage(void);

Parameters

This function has no parameters.

Return Value

If the function succeeds, the return value is the LANGID for the current user's UI language.

If the function fails, the return value is zero.

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, GetSystemDefaultUILanguage, EnumUILanguages