EngIsSemaphoreOwnedByCurrentThread function (winddi.h)

The EngIsSemaphoreOwnedByCurrentThread function determines whether the currently executing thread holds the specified semaphore.

Syntax

ENGAPI BOOL EngIsSemaphoreOwnedByCurrentThread(
  [in] HSEMAPHORE hsem
);

Parameters

[in] hsem

Handle to the semaphore.

Return value

EngIsSemaphoreOwnedByCurrentThread returns TRUE if the currently executing thread holds the specified semaphore, and FALSE if it does not.

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

EngIsSemaphoreOwned

EngReleaseSemaphore