How to EnumThread for a process ?


D

Denis @ TheOffice

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

Denis
 
Ad

Advertisements

G

Gary Chanson

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.
 
Ad

Advertisements

D

Denis @ TheOffice

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top