How can I get a thread suspended-status?
-
How can I get a thread status (wether it's suspended or not?) I looked at all Process and Thread functions and couldn't find a way on how to retrieve that information? Any ideas would be appreciated!!! Rob
-
How can I get a thread status (wether it's suspended or not?) I looked at all Process and Thread functions and couldn't find a way on how to retrieve that information? Any ideas would be appreciated!!! Rob
Robert Buldoc wrote: How can I get a thread status (wether it's suspended or not?) I looked at all Process and Thread functions and couldn't find a way on how to retrieve that information? You could always call SuspendThread(), look at the previous suspend count, then call ResumeThread(). Or, you could lookup the thread structure (http://www.microsoft.com/mspress/books/sampchap/4354b.asp[^]) and try to query the SuspendCount value directly. I decided to store the suspend state as a flag in my thread class. ...cmk Save the whales - collect the whole set
-
Robert Buldoc wrote: How can I get a thread status (wether it's suspended or not?) I looked at all Process and Thread functions and couldn't find a way on how to retrieve that information? You could always call SuspendThread(), look at the previous suspend count, then call ResumeThread(). Or, you could lookup the thread structure (http://www.microsoft.com/mspress/books/sampchap/4354b.asp[^]) and try to query the SuspendCount value directly. I decided to store the suspend state as a flag in my thread class. ...cmk Save the whales - collect the whole set
Thanks for yoru reply! I think I am gonna use the thread structure!
-
Thanks for yoru reply! I think I am gonna use the thread structure!
-
Robert Buldoc wrote: I think I am gonna use the thread structure! That way madness lies. You have been warned. :) (Let me know if you get it to work) ...cmk Save the whales - collect the whole set
lol..you already scared me!!;P I think I should use a flag also..