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) {
resolveGetLastError();
final result_ = _GetKeyboardLayoutName(pwszKLID);
return .new(value: result_ != FALSE, error: GetLastError());
}