GetKeyboardLayoutName function user32
Retrieves the name of the active input locale identifier (formerly called the keyboard layout) for the system.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getkeyboardlayoutnamew.
Implementation
Win32Result<bool> GetKeyboardLayoutName(PWSTR pwszKLID) {
final result_ = GetKeyboardLayoutNameW_Wrapper(pwszKLID);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}