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