c# – How do I get a list of Windows processes and running services in C #?

Question:

How do I get a list of Windows processes and services in C #?

Answer:

The list of services can be obtained via SeviceController.GetServices

List processor via Process.GetProcesses

I'm not sure about getting a list of Windows processes … It seems that there is some nuance with the bit depth, that is, the x64 application does not see x32.

Scroll to Top