June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to retrieve information about processes that are currently running.
Use the GetProcesses or GetProcessesByName methods of the System.Diagnostics.Process class.
The System.Diagnostics.Process class represents a Windows process. It provides an exhaustive list of properties, which are detailed on MSDN. Using this information, you can
Examine an application’s memory, thread, and CPU usage.
Determine when an application started and how long it has been executing.
Retrieve information from the executable file that was used to launch the application.
You can also use the Process class methods to end a process (as described in recipe Terminate Another Process), and you can handle the Process.Exited ...
Read now
Unlock full access