Skip to content

Commit

Permalink
fix(windows): GetKeyboardLayout/ToUnicodeEx don't return errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 13, 2024
1 parent ac1a4af commit 3624ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/syscall_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ var NewLazySystemDLL = windows.NewLazySystemDLL

type Handle = windows.Handle

//sys GetKeyboardLayout(threadId uint32) (hkl Handle, err error) = user32.GetKeyboardLayout
//sys ToUnicodeEx(vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32, err error) = user32.ToUnicodeEx
//sys GetKeyboardLayout(threadId uint32) (hkl Handle) = user32.GetKeyboardLayout
//sys ToUnicodeEx(vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32) = user32.ToUnicodeEx

0 comments on commit 3624ce5

Please sign in to comment.