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
The ToolHelp library gives an API for snapshotting processes and enumerating their threads (amongst other properties). See MSDN for details.