DosCloseRamSeml detaches a RAM semaphore from this process.
#define INCL_DOSSEMAPHORES #include <os2.h> PRAMSEM pramsem; /* Pointer to the RAM semaphore structure. */ APIRET rc; /* Return code. */ rc = DosCloseRamSem(pramsem);