|
-
April 7th, 2004, 10:00 AM
#6
Re: some more info
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;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|