다음을 통해 공유


GetUserDefaultUILanguage

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

GetSystemDefaultUILanguage
EnumUILanguages

Concepts

Language Identifiers and Locales