@@ -216,7 +216,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
216
216
//sys LoadKeyboardLayout(name *uint16, flags uint32) (hkl Handle) = user32.LoadKeyboardLayoutW
217
217
//sys UnloadKeyboardLayout(hkl Handle) (v bool) = user32.UnloadKeyboardLayout
218
218
//sys GetKeyboardLayout(tid uint32) (hkl Handle) = user32.GetKeyboardLayout
219
- //sys toUnicodeEx (vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32) = user32.ToUnicodeEx
219
+ //sys ToUnicodeEx (vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32) = user32.ToUnicodeEx
220
220
//sys GetShellWindow() (shellWindow HWND) = user32.GetShellWindow
221
221
//sys MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) [failretval==0] = user32.MessageBoxW
222
222
//sys ExitWindowsEx(flags uint32, reason uint32) (err error) = user32.ExitWindowsEx
@@ -1924,12 +1924,3 @@ const (
1924
1924
EV_ERR = 0x0080
1925
1925
EV_RING = 0x0100
1926
1926
)
1927
-
1928
- // ToUnicodeEx Translates the specified virtual-key code and keyboard state to
1929
- // the corresponding Unicode character or characters.
1930
- func ToUnicodeEx (virtualKey , scanCode uint32 , keyState [256 ]byte , buf []uint16 , flags uint32 , layout Handle ) int32 {
1931
- if len (buf ) == 0 {
1932
- return 0
1933
- }
1934
- return toUnicodeEx (virtualKey , scanCode , & keyState [0 ], & buf [0 ], int32 (len (buf )), flags , layout )
1935
- }
0 commit comments