- Thread status (suspend or resume)
- Posted by reis on May 23rd, 2008
H,
A thread can be suspended or resumed with ThreadSuspend and
ThreadResume. However I can't find
a Win32 api call to retrieve the status of the thread. I looked also
in the CONTEXT block and TEB but could not find anything.
Is there such a function available?
thanks Rob
- Posted by Jerry Coffin on May 23rd, 2008
In article <ed9a94af-8cdf-4c9b-92cd-
b1f677c82d2b@m36g2000hse.googlegroups.com>, R.Eisink@qipc.com says...
I don't think so. What would you do with it if it existed? Keep in mind
that between the time you obtain the value, and the time you attempt to
use the value, that value is likely to have changed (possibly several
times).
--
Later,
Jerry.
The universe is a figment of its own imagination.
- Posted by Christian ASTOR on May 24th, 2008
reis wrote:
There are values in User Mode, but not accurate (ThreadState, WaitReason
from NtQuerySystemInformation() or Win32_Thread)
Also SuspendCount from KTHREAD, which can be read in UM by hardcoding
addresses, then to avoid (!= for each OS / SP)...