EngIsSemaphoreOwnedByCurrentThread 函数确定当前正在执行的线程是否包含指定的信号灯。
语法
ENGAPI BOOL EngIsSemaphoreOwnedByCurrentThread(
[in] HSEMAPHORE hsem
);
参数
[in] hsem
信号灯的句柄。
返回值
如果当前正在执行的线程保留指定的信号灯,则 EngIsSemaphoreOwnedByCurrentThread 返回 TRUE;否则返回 FALSE。
要求
| 要求 | 值 |
|---|---|
| 最低受支持的客户端 | 适用于 Windows 2000 及更高版本的 Windows 操作系统。 |
| 目标平台 | 通用 |
| 标头 | winddi.h (包括 Winddi.h) |
| Library | Win32k.lib |
| DLL | Win32k.sys |