1.3 How can I get a list of all processes running on my system?


Use the static Process.GetProcesses() found in the System.Diagnostics namespace.

[C#]
     Using System.Diagnostics;
     ...
     foreach ( Process p in Process.GetProcesses() )
          Console.WriteLine( p ); // string s = p.ToString();

[VB.NET]
     Imports System.Diagnostics
     ...
     Dim p As Process
     For Each p In Process.GetProcesses()
          Console.WriteLine(p) ' string s = p.ToString()
     Next p


© 2001-2010 Copyright Syncfusion Inc. All rights reserved.  |  Privacy Policy  |  Contact  |  Sitemap