Releases units to an RT semaphore. Threads waiting on the RT semaphore may be allowed to run (released) if this call supplies all the units they were waiting for.
NTXSTATUS ntxReleaseRtSemaphore(
    NTXHANDLE hSemaphore,
    WORD wUnits
);
hSemaphore 
wUnits 
E_OK 
E_OK 0x0000 
E_LIMIT 0x0004 
E_EXIST 0x0006 
hSemaphore is not a handle for an existing object. 
E_TYPE 0x8002 
hSemaphore is not a handle for a semaphore. 
E_NTX_INTERNAL_ERROR 
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 | intime/nt/include/ntx.h | ntx.h | ntx.lib | 
| INtime 4.01 (for 64-bit Windows) | intime/nt/include/ntx.h | ntx.h | ntx64.lib |