DosOpenRamSem attaches a RAM semaphore to this process. The semaphore is opened for all threads in the calling process.

#define INCL_DOSSEMAPHORES
#include <os2.h>

PRAMSEM    pramsem;  /*  Pointer to the RAM semaphore structure. */
APIRET     rc;       /*  Return code. */

rc = DosOpenRamSem(pramsem);


[Back: DosOpenRamSem]
[Next: DosOpenRamSem Parameter - pramsem]