- thread status
- Posted by sweety_s on April 1st, 2008
I am working on win xp and using vc++.
There were no replies for the question
i wanted to know if i can get the status of all the threads in the
process.
I am able to get all the threads but not the state of the thread.
All i want to know is whether the process is suspended or running..
Thanks in Advance
- Posted by Christian ASTOR on April 1st, 2008
On 1 avr, 10:48, sweety_s <gayatri.neel...@gmail.com> wrote:
NtQuerySystemInformation() & SystemProcessInformation
- Posted by sweety_s on April 3rd, 2008
On Apr 1, 1:48*pm, sweety_s <gayatri.neel...@gmail.com> wrote:
Hi
Could any one please help me with it.
I am using NtquerysystemInfo with system process information.
I get all the threads status but then when i suspend the process then
the thread status is not updated,
Please help me
- Posted by Sten Westerback \(MVP SDK 2005-6 :\) on April 4th, 2008
"sweety_s" <gayatri.neelema@gmail.com> wrote in message
news:0b56fe9d-8204-4840-a57e-480edf2ec96d@d1g2000hsg.googlegroups.com...
On Apr 1, 1:48 pm, sweety_s <gayatri.neel...@gmail.com> wrote:
One can't suspend a process.. only one or many of it's threads.
So when you say "suspend the process" i suppose you mean you suspended some
of the threads?
So i guess you open UniqueProcessId with OpenProcess ... but for that you
could as well use EnumProcesses() in PSAPI .. or ofcourse WMI Win32_Process
class.
I can't find a thread enumeration routine though...i would think one need
kernel code for that.
I hope you didn't for instance suspend yourself... that would make your
thread unable to read and show its own status.. 
What are you trying to do anyway? A new ProcessExplorer (sysinternals.com)?
..- Sten