Enumerating threads in Windows

前端 未结 3 792
不思量自难忘°
不思量自难忘° 2020-11-29 10:24

How can I enumerate all of the threads in a process given a HANDLE to the process (or a process ID)? I\'m interested in doing this so I can further do an EnumThreadWindows o

3条回答
  •  爱一瞬间的悲伤
    2020-11-29 11:08

    The ToolHelp library gives an API for snapshotting processes and enumerating their threads (amongst other properties). See MSDN for details.

提交回复
热议问题