| 1 |
package windows |
| 2 |
|
| 3 |
import "golang.org/x/sys/windows" |
| 4 |
|
| 5 |
// NewLazySystemDLL is a type alias for windows.NewLazySystemDLL. |
| 6 |
var NewLazySystemDLL = windows.NewLazySystemDLL |
| 7 |
|
| 8 |
// Handle is a type alias for windows.Handle. |
| 9 |
type Handle = windows.Handle |
| 10 |
|
| 11 |
//sys ReadConsoleInput(console Handle, buf *InputRecord, toread uint32, read *uint32) (err error) = kernel32.ReadConsoleInputW |
| 12 |
//sys PeekConsoleInput(console Handle, buf *InputRecord, toread uint32, read *uint32) (err error) = kernel32.PeekConsoleInputW |
| 13 |
//sys GetNumberOfConsoleInputEvents(console Handle, numevents *uint32) (err error) = kernel32.GetNumberOfConsoleInputEvents |
| 14 |
//sys FlushConsoleInputBuffer(console Handle) (err error) = kernel32.FlushConsoleInputBuffer |