Removes the current link to the lock specified. If the number of links is zero, the lock is destroyed.
DestroyLock ( lockID As Integer)
DestroyLock returns TRUE if the lock was successfully destroyed.
Any agent that uses locks should be sure to use the DestroyLock function when they are done using a lock. If the lock is not destroyed, it will continue to use system resources as no one can use that lock again until the agent exits.