I can not load a Windows function call, but I have not problem in loading
the another one, and according to the documentation both calls need the
same requirements (I'm using Windows XP)
package main
import (
"syscall"
)
var (
modkernel32 = syscall.MustLoadDLL("kernel32.dll")
procGetConsoleMode = modkernel32.MustFindProc("GetConsoleMode")
procReadConsoleInput = modkernel32.MustFindProc("ReadConsoleInput")
)
panic: Failed to find ReadConsoleInput procedure in kernel32.dll: The
specified
procedure could not be found.
* * *
GetConsoleMode:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683167%28v=vs.85%29.aspx
ReadConsoleInput:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684961%28v=vs.85%29.aspx