EngIsSemaphoreOwned function (winddi.h)

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

Syntax

ENGAPI BOOL EngIsSemaphoreOwned(
  [in] HSEMAPHORE hsem
);

Parameters

[in] 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

Requirement Value
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