Waits for reads and/or writes, for a maximum of one hour.
// Core function, no LOADLIB necessary INTEGER FUNCTION WaitForMultiple(INTEGER ARRAY reads, INTEGER ARRAY writes, INTEGER maxwait)
INTEGER ARRAY reads
Handles to wait for (reads, only processes and sockets are supported) You can not directly wait for the termination of a process.
INTEGER ARRAY writes
Handles to wait for (writes, only processes are supported)
Time to wait, in milliseconds (-1 = one hour)
A handle that is signalled, or -1 when a time-out has occurred
WaitForMultiple waits for readability or writabity of a list of handles.