pszName (PSZ) - input
This field is null if the semaphore is either an unnamed, shared event semaphore or a private event semaphore (private semaphores are always unnamed). An unnamed event semaphore is identified by the pointer to the event semaphore handle (phev). If this field is not null, then the semaphore is a named shared semaphore, and phev must be set to zero.
phev (PHEV) - in/out
Input
ulrc (APIRET) - returns
DosOpenEventSem returns one of the following values: