Waits for an event semaphore to be posted.

#define INCL_DOSSEMAPHORES
#include <os2.h>

HEV       hev;        /*  The handle of the event semaphore to wait for. */
ULONG     ulTimeout;  /*  The time-out in milliseconds. */
APIRET    ulrc;       /*  Return Code. */

ulrc = DosWaitEventSem(hev, ulTimeout);


[Back] [Next]