Check if a Win32 thread is running or in a suspended state

前端 未结 7 1546
清歌不尽
清歌不尽 2020-12-01 11:26

How do I check to see if a Win32 thread is running or in suspended state?

I can\'t find any Win32 API which gives the state of a thread. So how do I get the thread s

7条回答
  •  爱一瞬间的悲伤
    2020-12-01 11:29

    In Windows 7, you can use QueryUmsThreadInformation. (UMS stands for User mode scheduling).

    See here for UmsThreadIsSuspended.

提交回复
热议问题