Using C#, how can I get a list of all running processes on the current machine, including image name, description and process id? I’m after something similar to what you would see under the task manager “Process” tab, though without the resource information.
Share
You need to use the utilities available in the Diagnostics package to do this. I found this code and it works fine.
This line retrieves the processes exactly. You can extract the properties of each process then.
The complete code is as follows. Customize as necessarily`
Referencing the Original article.