windows

package standard library
master (7bba745) Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const MaxArgs = 42

MaxArgs should be divisible by 2, as Windows stack must be kept 16-byte aligned on syscall entry.

Although it only permits maximum 42 parameters, it is arguably large enough.

Variables

This section is empty.

Functions

func AsmStdCallAddr

func AsmStdCallAddr() uintptr

AsmStdCallAddr is the address of a function that accepts a pointer to StdCallInfo stored on the stack following the C calling convention, and calls the function using Windows' stdcall calling convention. Shouldn't be called directly from Go.

func StdCall

func StdCall(fn *StdCallInfo)

StdCall calls a function using Windows' stdcall convention.

Types

type StdCallInfo

type StdCallInfo struct {
	Fn   uintptr
	N    uintptr // number of parameters
	Args uintptr // parameters
	R1   uintptr // return values
	R2   uintptr
	Err  uintptr // error number
}

StdCallInfo is a structure used to pass parameters to the system call.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL