ActivateKeyboardLayout function user32
Sets the input locale identifier (formerly called the keyboard layout handle) for the calling thread or the current process.
The input locale identifier specifies a locale as well as the physical layout of the keyboard.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-activatekeyboardlayout.
Implementation
Win32Result<HKL> ActivateKeyboardLayout(
HKL hkl,
ACTIVATE_KEYBOARD_LAYOUT_FLAGS flags,
) {
resolveGetLastError();
final result_ = _ActivateKeyboardLayout(hkl, flags);
return .new(value: .new(result_), error: GetLastError());
}