Skip to content

Commit b19c287

Browse files
committed
Merge pull request lxn#8 from toqueteos/patch-1
Some useful documentation for SendInput.
2 parents 15ba4c6 + ead0132 commit b19c287

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Hill <[email protected]>
1818
Kevin Pors <[email protected]>
1919
2020
21-
21+
Carlos Cobo <[email protected]>

user32.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,6 +2439,7 @@ func SendDlgItemMessage(hWnd HWND, id int32, msg uint32, wParam, lParam uintptr)
24392439
return ret
24402440
}
24412441

2442+
// pInputs expects a unsafe.Pointer to a slice of MOUSE_INPUT or KEYBD_INPUT or HARDWARE_INPUT structs.
24422443
func SendInput(nInputs uint32, pInputs unsafe.Pointer, cbSize int32) uint32 {
24432444
ret, _, _ := syscall.Syscall(sendInput, 3,
24442445
uintptr(nInputs),

0 commit comments

Comments
 (0)