GetKeyNameText function user32
Retrieves a string that represents the name of a key.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getkeynametextw.
Implementation
Win32Result<int> GetKeyNameText(int lParam, PWSTR lpString, int cchSize) {
resolveGetLastError();
final result_ = _GetKeyNameText(lParam, lpString, cchSize);
return .new(value: result_, error: GetLastError());
}