1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.
Ads by Lake Quincy Media

Thursday, August 27, 2009

Get Running Process C#

using System.Diagnostics;
ProcessThreadCollection threadlist = theProcess.Threads;

foreach(ProcessThread theThread in threadlist){
Console.WriteLine("Thread ID:{0} Priority: {1} Started: {2}", theThread.Id, theThread.PriorityLevel, theThread.StartTime);
}

0 comments:

Post a Comment

Related Posts with Thumbnails