Kernel32GetUserDefaultUILanguage Method
Returns the language identifier for the user UI language for the current user.
If the current user has not set a language,
GetUserDefaultUILanguage returns the preferred language set for the system.
If there is no preferred language set for the system, then the system default UI language (also known as "install language") is returned.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true)]
public static ushort GetUserDefaultUILanguage()
<DllImportAttribute("Kernel32.dll", ExactSpelling := true>]
Public Shared Function GetUserDefaultUILanguage As UShort
Dim returnValue As UShort
returnValue = Kernel32.GetUserDefaultUILanguage()
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true)]
static unsigned short GetUserDefaultUILanguage()
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true)>]
static member GetUserDefaultUILanguage : unit -> uint16
No code example is currently available or this language may not be supported.
Return Value
UInt16
Returns the language identifier for the user UI language for the current user.