title: Given a thread id, how to decide it's still running or not on Windows
body: <p>On linux, we have pthread_kill() to do this. I'm trying to find a Windows counterpart for it.</p>
  
  <p>In other words, given a thread id, is there a way to decide whether the thread is still running or not?</p>
  
  <p>GetExitCodeThread() is the closest I've found, however, it needs thread handle rather than thread id as its parameter. </p>