Creates an event semaphore.

#define INCL_DOSSEMAPHORES
#include <os2.h>

PSZ       pszName;  /*  A pointer to the ASCIIZ name of the semaphore. */
PHEV      phev;     /*  A pointer to the handle of the event semaphore. */
ULONG     flAttr;   /*  A set of flags that specify the attributes of the event semaphore. */
BOOL32    fState;   /*  Initial state of the semaphore. */
APIRET    ulrc;     /*  Return Code. */

ulrc = DosCreateEventSem(pszName, phev, flAttr,
         fState);


[Back] [Next]