CloseSemaphore
Decrements a semaphore’s open count
#include <\nlm\nit\nwsync.h>
int CloseSemaphore (
long semaphoreHandle);
For cross-platform functionality, call NWCloseSemaphore.
This function decrements the open count of the semaphore, indicating that one less process is holding the semaphore open. If the requesting process is the last process to have this semaphore open, the semaphore is deleted. An application can obtain a semaphore handle by calling OpenSemaphore.
ExamineSemaphore, OpenSemaphore, SignalSemaphore, WaitOnSemaphore