EngIsSemaphoreOwnedByCurrentThread 函式 (winddi.h)

EngIsSemaphoreOwnedByCurrentThread 函式會判斷目前執行的線程是否保存指定的號誌。

語法

ENGAPI BOOL EngIsSemaphoreOwnedByCurrentThread(
  [in] HSEMAPHORE hsem
);

參數

[in] hsem

號誌的句柄。

傳回值

如果目前執行的線程持有指定的號誌,EngIsSemaphoreOwnedByCurrentThread 會傳回 TRUE,如果不是,則會傳回 FALSE

規格需求

需求
最低支援的用戶端 適用於 Windows 2000 和更新版本的 Windows 作業系統。
目標平台 Universal
標頭 winddi.h (包含Winddi.h)
程式庫 Win32k.lib
Dll Win32k.sys

另請參閱

EngAcquireSemaphore

EngCreateSemaphore

EngIsSemaphoreOwned

EngReleaseSemaphore