Discussion:
How to EnumThread for a process ?
(too old to reply)
Denis @ TheOffice
2006-06-12 18:16:50 UTC
Permalink
There is no EnumThread if I am not mistaken Is there anybody who knows How do we do that though?

Denis
Gary Chanson
2006-06-12 18:26:54 UTC
Permalink
Post by Denis @ TheOffice
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.

--

- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools
Denis @ TheOffice
2006-06-12 20:15:20 UTC
Permalink
Thanks,

Denis
Post by Denis @ TheOffice
Post by Denis @ TheOffice
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.
--
- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools
Loading...