haskell / 9 / libraries / win32-2.12.0.0 / system-win32-event.html

System.Win32.Event

Copyright (c) Esa Ilari Vuokko 2006
License BSD-style (see the file LICENSE)
Maintainer Esa Ilari Vuokko <ei@vuokko.info>
Stability provisional
Portability portable
Safe Haskell Safe-Inferred
Language Haskell2010

Description

A collection of FFI declarations for interfacing with Win32 event system between processes.

Duplicate options

type DuplicateOption = DWORD Source

dUPLICATE_CLOSE_SOURCE :: DuplicateOption Source

dUPLICATE_SAME_ACCESS :: DuplicateOption Source

Access modes

type AccessMode = UINT Source

eVENT_ALL_ACCESS :: AccessMode Source

eVENT_MODIFY_STATE :: AccessMode Source

Wait results

type WaitResult = DWORD Source

wAIT_ABANDONED :: WaitResult Source

wAIT_IO_COMPLETION :: WaitResult Source

wAIT_OBJECT_0 :: WaitResult Source

wAIT_TIMEOUT :: WaitResult Source

wAIT_FAILED :: WaitResult Source

Managing events

openEvent :: AccessMode -> Bool -> String -> IO HANDLE Source

createEvent :: Maybe SECURITY_ATTRIBUTES -> Bool -> Bool -> String -> IO HANDLE Source

duplicateHandle :: HANDLE -> HANDLE -> HANDLE -> AccessMode -> Bool -> DuplicateOption -> IO HANDLE Source

setEvent :: HANDLE -> IO () Source

resetEvent :: HANDLE -> IO () Source

pulseEvent :: HANDLE -> IO () Source

Signalling objects

signalObjectAndWait :: HANDLE -> HANDLE -> MilliSeconds -> Bool -> IO WaitResult Source

Waiting on objects

waitForSingleObject :: HANDLE -> MilliSeconds -> IO WaitResult Source

waitForSingleObjectEx :: HANDLE -> MilliSeconds -> Bool -> IO WaitResult Source

waitForMultipleObjects :: [HANDLE] -> Bool -> MilliSeconds -> IO WaitResult Source

waitForMultipleObjectsEx :: [HANDLE] -> Bool -> MilliSeconds -> Bool -> IO WaitResult Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.4.2/docs/libraries/Win32-2.12.0.0/System-Win32-Event.html