w32

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 3 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 WaitForSingleObject

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

WaitForSingleObject(waitHandle, timeoutMs) timeoutMs can be INFINITE_TIMEOUT

Types

This section is empty.

Jump to

Keyboard shortcuts

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