hsem (HEV) - input

      The handle of an event semaphore that is to be posted when the data is added to the queue and nowait is set to 1.

      The semaphore may be either private or shared, depending on whether the queue is shared across processes.

      hsem is ignored if nowait is set to 0.

      Note: The first time an event-semaphore handle is supplied in a DosPeekQueue or DosReadQueue request for which nowait is set to 1, the handle is saved by the system. The same handle must be supplied in all subsequent DosPeekQueue and DosReadQueue requests that are issued for that queue.


    [Back] [Next]