Kernel32GetThreadUILanguage Method

Returns the language identifier of the first user interface language for the current thread.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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()

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.

Remarks

See Also