win32

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Unlicense Imports: 5 Imported by: 0

README

go-win32

Win32 support for Go

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	TRUE  = 1
	FALSE = 0
)
View Source
const WAIT_TIMEOUT = 0x00000102

Variables

View Source
var CloseHandle = windows.CloseHandle
View Source
var (
	WaitTimeout = errors.New("wait timeout")
)

Functions

func CreateEvent

func CreateEvent(eventAttributes *windows.SecurityAttributes, manualReset bool, initialState bool, name string) (windows.Handle, error)

CreateEvent creates a handle for event operations

func GetDesktopWindow

func GetDesktopWindow() windows.HWND

GetDesktopWindow returns the handle of the desktop window

func ToBOOL

func ToBOOL(b bool) uint32

func WaitForSingleObject

func WaitForSingleObject(handle windows.Handle, duration time.Duration) error

WaitForSingleObject will wait for a single handle value to become available up to a total of `duration` milliseconds

func WaitForSingleObjectInfinite

func WaitForSingleObjectInfinite(handle windows.Handle) error

WaitForSingleObjectInfinite will wait infinitely for a single handle value to become available

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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