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

猜你喜欢

转载自www.cnblogs.com/liujx2019/p/12603608.html