Share via


GetUserDefaultUILanguage (Compact 2013)

3/28/2014

This function retrieves the language identifier (LANGID) for the current user's UI language selection.

Syntax

LANGID GetUserDefaultUILanguage();

Parameters

None.

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.

Remarks

The registry key that stores the default user language as a locale identifier (LCID) value of type REG_SZ is located at HKEY_CURRENT_USER\MUI\CurLang.

For more information about language identifiers and LCID, see Language Identifiers and Locales.

Requirements

Header

windows.h

Library

Coreloc.lib

See Also

Reference

Multilingual User Interface (MUI) Functions
Language Identifiers
GetSystemDefaultUILanguage
EnumUILanguages