title: Exit code of thread in Windows C++
body: <p>Suppose I have created multiple threads.
  Now I am waiting for multiple object as well using :</p>
  
  <pre><code>WaitOnMultipleObject(...);
  </code></pre>
  
  <p>Now if I want to know the status of all the thread's return code. How to do that ?</p>
  
  <p>Do I need to loop for all the thread's handle in the loop.</p>
  
  <pre><code> GetExitCodeThread(
    __in   HANDLE hThread,
    __out  LPDWORD lpExitCode
  );
  </code></pre>
  
  <p>And now check <code>lpExitCode</code> for success / failure code ?</p>
  
  <p>Cheers,
  Siddhartha</p>