EngIsSemaphoreOwnedByCurrentThread 関数 (winddi.h)

EngIsSemaphoreOwnedByCurrentThread 関数は、現在実行中のスレッドが指定されたセマフォを保持しているかどうかを判断します。

構文

ENGAPI BOOL EngIsSemaphoreOwnedByCurrentThread(
  [in] HSEMAPHORE hsem
);

パラメーター

[in] hsem

セマフォへのハンドル。

戻り値

EngIsSemaphoreOwnedByCurrentThread は、現在実行中のスレッドが指定されたセマフォを保持している場合は TRUE を返し、指定されていない場合は FALSE を 返します。

要件

要件
サポートされている最小のクライアント Windows 2000 以降のバージョンの Windows オペレーティング システムで使用できます。
対象プラットフォーム ユニバーサル
Header winddi.h (Winddi.h を含む)
Library Win32k.lib
[DLL] Win32k.sys

こちらもご覧ください

EngAcquireSemaphore

EngCreateSemaphore

EngIsSemaphoreOwned

EngReleaseSemaphore