Kernel32GetThreadUILanguage Method
Returns the language identifier of the first user interface language for the current thread.
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 GetThreadUILanguage()
<DllImportAttribute("Kernel32.dll", ExactSpelling := true>]
Public Shared Function GetThreadUILanguage As UShort
Dim returnValue As UShort
returnValue = Kernel32.GetThreadUILanguage()
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true)]
static unsigned short GetThreadUILanguage()
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true)>]
static member GetThreadUILanguage : unit -> uint16
No code example is currently available or this language may not be supported.
Return Value
UInt16
Returns the identifier for a language explicitly associated with the thread by
SetThreadUILanguage(UInt32) or
SetThreadPreferredUILanguages(MuiLanguageMode, String, UInt32).
Alternatively, if no language has been explicitly associated with the current thread,
the identifier can indicate a user or system user interface language.