How to get a list of Windows processes and services in C #?
1 answer
A list of services can be obtained through SeviceController.GetServices
List Processor via Process.GetProcesses
Not sure about the receipt of a list of Windows processes ... It seems there is some nuance with a bit depth, i.e., the x64 application does not see x32.
- Addition that the example with services earned - add project references to using System.ServiceProcess and using System.Management; - Rakzin Roman
|