Windows环境,获取当前线程的ID,GetCurrentThreadId

GetCurrentThreadId

打印格式:0x%08lx

头文件:processthreadsapi.h (include Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008 Windows Server 2008 R2, Windows.h)

https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentthreadid

posted on 2020-03-31 10:49  liujx2019  阅读(4092)  评论(0)    收藏  举报

导航