Kernel32SetThreadUILanguage Method

Sets the 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, SetLastError = true)]
public static uint SetThreadUILanguage(
	uint langId
)

Parameters

langId  UInt32
Language identifier for the user interface language for the thread.

Return Value

UInt32
Returns the input language identifier if successful.

If the input identifier is nonzero, the function returns that value.

If the language identifier is 0, the function always succeeds and returns the identifier of the language that best supports the Windows console.

Remarks

See Also