title: Enumerating threads in Windows
body: <p>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 <a href="http://msdn.microsoft.com/en-us/library/ms633495(VS.85).aspx" rel="noreferrer">EnumThreadWindows</a> on each thread.</p>