w32

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	WAIT_OBJECT_0    = 0x00000000
	WAIT_TIMEOUT     = 0x00000102
	WAIT_FAILED      = 0xFFFFFFFF
	INFINITE_TIMEOUT = 0xFFFFFFFF
)

Variables

View Source
var (
	Modkernel32 *syscall.DLL
)

Functions

func CloseHandle

func CloseHandle(h syscall.Handle) error

CloseHandle closes an open object handle.

func CreateEvent

func CreateEvent(manualReset, initialState bool, name string) (syscall.Handle, error)

CreateEvent creates or opens a named or unnamed event object. manualReset indicates whether the event must be manually reset. initialState indicates whether the event is initially signaled. name is the name of the event object. If empty, an unnamed event is created.

func LoadDLL added in v2.2.0

func LoadDLL(name string) (*syscall.DLL, error)

LoadDLL loads a driver DLL by name from the system directory or the executable's, never from the working directory or PATH, where a planted copy would be found first. An absolute path loads that file, and the DLLs it imports are looked for in its own folder first.

func WaitForSingleObject

func WaitForSingleObject(h syscall.Handle, timeoutMs uint32) (uint32, error)

WaitForSingleObject(waitHandle, timeoutMs) timeoutMs can be INFINITE_TIMEOUT

Receive loops call this per frame burst, so it uses syscall.SyscallN rather than Proc.Call, which heap allocates its argument slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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