CloseLocalSemaphore
Closes a local semaphore
#include <nwsemaph.h>
int CloseLocalSemaphore (
LONG semaphoreHandle);
The following table lists return values and descriptions.
WARNING:A bad semaphore handle causes the server to abend.
This function closes an open semaphore and makes any threads waiting on the semaphore runnable. After this function is called, the semaphore handle is no longer valid and should not be used again.