L Liam McNamara Dec 10, 2004 #2 using system.Diagnostics; .... Process[] notepads = Process.GetProcessesByName("notepad"); foreach(Process proc in notepads) foreach(ProcessThread procThread in proc.Threads) System.Console.WriteLine(procThread.ThreadState); --Liam.
using system.Diagnostics; .... Process[] notepads = Process.GetProcessesByName("notepad"); foreach(Process proc in notepads) foreach(ProcessThread procThread in proc.Threads) System.Console.WriteLine(procThread.ThreadState); --Liam.
H Ha ha Dec 10, 2004 #3 what i mean is to get a definit thread state .for example, I start a thread named "mythread" in a process,in another process ,I want to get the "mythread" state in first process.
what i mean is to get a definit thread state .for example, I start a thread named "mythread" in a process,in another process ,I want to get the "mythread" state in first process.