How to EnumThread for a process ?

  • Thread starter Thread starter Denis @ TheOffice
  • Start date Start date
D

Denis @ TheOffice

There is no EnumThread if I am not mistaken Is there anybody who knows How do we do that though?

Denis
 
Denis @ TheOffice said:
There is no EnumThread if I am not mistaken Is there anybody who knows How
do we do that though?

You can use the ToolHelp library. You'd use CreateToolhelp32Snapshot to
start, Process32First and Process32Next to find the target process, and
Thread32First and Thread32Next to walk through its threads.
 
Thanks,

Denis

Gary Chanson said:
do we do that though?

You can use the ToolHelp library. You'd use CreateToolhelp32Snapshot to
start, Process32First and Process32Next to find the target process, and
Thread32First and Thread32Next to walk through its threads.
 
Back
Top