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

前端 未结 7 1467
清歌不尽
清歌不尽 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:47

    YES: it IS possible to get the thread state and determine if it is suspended.

    And NO: You don't need Windows 7 to do that.

    I published my working class here on Stackoverflow: How to get thread state (e.g. suspended), memory + CPU usage, start time, priority, etc

    This class requires Windows 2000 or higher.

    0 讨论(0)
提交回复
热议问题