Open StaticLove opened 6 years ago
You probably are looking at the docs at golang.org, which happen to be for Linux.
For Windows, the signature is
func Syscall(trap, nargs, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
If you installed Go via the msi installer, you can start a local godoc with Windows specific syscall docs from your start menu or whatever your Windows version provides.
So it is, thank you very much.
The parameters of Syscall method in syscall package of golang are defined as such:
but in the project the parameters are indeed passed as such:
I do not quite understand why we can do that?