HOME> 装扮工坊> getCurrentThreadId 函数 (processthreadsapi.h) - Win32 apps
{$vo.文章标题}
{$vo.文章标题}

getCurrentThreadId 函数 (processthreadsapi.h) - Win32 apps

admin
7252

检索调用线程的线程标识符。

语法

DWORD GetCurrentThreadId();

返回值

返回值是调用线程的线程标识符。

注解

在线程终止之前,线程标识符将在整个系统中唯一标识线程。

示例

有关示例,请参阅 使用线程本地存储。

要求

要求

最低受支持的客户端

Windows XP [桌面应用 | UWP 应用]

最低受支持的服务器

Windows Server 2003 [桌面应用 | UWP 应用]

目标平台

Windows

标头

processthreadsapi.h (包括 Windows Server 2003、Windows Vista、Windows 7、Windows Server 2008 Windows Server 2008 R2)

Library

Kernel32.lib

DLL

Kernel32.dll

另请参阅

GetCurrentThread

OpenThread

进程和线程函数

线程

VBS enclave 中可用的 Vertdll API