Originally posted by galathaea
You can use GetExitCodeProcess to find the state of a process if you do not want to wait for the process to end but just check up on it. It will give you a STILL_ACTIVE notifier if the process is still running.
But what if I want more information? I cannot believe that the process cannot tell me if the thread is currently running, or is in a suspended state?

Does windows not have a call, or something very similar to it, that if I give the function a pointer or handle to my thread, it can return to me somehow the status of the thread? Something like...

Code:
switch (::GetThreadStatus(m_thread))
{
   case SUSPENDED:
      break;

   case RUNNING:
      break;

   case TERMINATED:
      break;

   default:
      break;
}