internal static extern bool ReleaseSemaphore(SafeWaitHandle handle, int releaseCount, out int previousCount);