Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func CreateEvent(eventAttributes *windows.SecurityAttributes, manualReset bool, ...) (windows.Handle, error)
- func GetDesktopWindow() windows.HWND
- func ToBOOL(b bool) uint32
- func WaitForSingleObject(handle windows.Handle, duration time.Duration) error
- func WaitForSingleObjectInfinite(handle windows.Handle) error
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 ¶
GetDesktopWindow returns the handle of the desktop window
func WaitForSingleObject ¶
WaitForSingleObject will wait for a single handle value to become available up to a total of `duration` milliseconds
func WaitForSingleObjectInfinite ¶
WaitForSingleObjectInfinite will wait infinitely for a single handle value to become available
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.