...

Command mkwinsyscall

mkwinsyscall generates windows system call bodies

It parses all files specified on command line containing function prototypes (like syscall_windows.go) and prints system call bodies to standard output.

The prototypes are marked by lines beginning with "//sys" and read like func declarations if //sys is replaced by func, but:

Usage:

mkwinsyscall [flags] [path ...]

Flags

-output string
      Output file name (standard output if omitted).
-sort
      Sort DLL and function declarations (default true).
      Intended to help transition from  older versions of mkwinsyscall by making diffs
      easier to read and understand.
-systemdll
      Whether all DLLs should be loaded from the Windows system directory (default true).
-trace
      Generate print statement after every syscall.
-utf16
      Encode string arguments as UTF-16 for syscalls not ending in 'A' or 'W' (default true).
-winio
      Import this package ("github.com/Microsoft/go-winio").