Finding a Semaphore


To find a semaphore by name, use the FindSemaphore() macro:

Item FindSemaphore( const char *name )
The name argument is the name of the semaphore to find. The macro returns the item number of the semaphore or a negative error code if an error occurred.