Attaches a shared event semaphore to a local named pipe.

#define INCL_DOSNMPIPES
#include <os2.h>

HPIPE     hpipe;  /*  The named-pipe handle to which a semaphore is to be attached. */
HSEM      hsem;   /*  The handle of an event semaphore or a multiple-wait (muxwait) semaphore that is posted when the pipe (hpipe) has either data to be read or write space available. */
ULONG     key;    /*  A key value that distinguishes events arriving on different named pipes that are attached to the same semaphore. */
APIRET    ulrc;   /*  Return Code. */

ulrc = DosSetNPipeSem(hpipe, hsem, key);


[Back] [Next]