EngIsSemaphoreOwned function (winddi.h)

The EngIsSemaphoreOwned function determines whether any thread holds the specified semaphore.

Syntax

ENGAPI BOOL EngIsSemaphoreOwned(
  HSEMAPHORE hsem
);

Parameters

hsem

Handle to the semaphore.

Return value

EngIsSemaphoreOwned returns TRUE if any thread holds the specified semaphore, and FALSE if no thread holds it.

Requirements

   
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Universal
Header winddi.h (include Winddi.h)
Library Win32k.lib
DLL Win32k.sys

See also

EngAcquireSemaphore

EngCreateSemaphore

EngIsSemaphoreOwnedByCurrentThread

EngReleaseSemaphore