title: How to get All thread ids and names of a process
body: <p>I wrote a program using c# that list all running process in window, i want to list all running process in window, and in each process, i want to list all running thread (both name and id). i can't find any function on Window Api to list thread name, how can i do it ?</p>
  
  <p>Example: plz look at this picture:
  lh4.googleusercontent.com/HwP6dpts5uRPJIElH7DgUd3x95aQKO36tynkfsaDMBbM=w607-h553-no</p>
  
  <p>in the image, i want to list</p>
  
  <ul>
  <li>FireFox ID: 123</li>
  <li>Google Chorme ID 456</li>
  <li>...</li>
  <li>Explorer ID 789</li>
  <li><strong>Documents ID 654</strong></li>
  <li><strong>Temp ID 231</strong></li>
  <li>...</li>
  </ul>
  
  <p>Thankyou !</p>