dimanche 2 juin 2019

C# If process is a system process

I have a program that loops through all the active processes using a foreach loop:

foreach (System.Diagnostics.Process myProc in System.Diagnostics.Process.GetProcesses())

how can I add a if check to see if myProc is a system process (this would be all the apps under 'Windows processes' in task manager.

Aucun commentaire:

Enregistrer un commentaire