Sanjeeb Sapkota

Sanjeeb Sapkota

  • 1.2k
  • 811
  • 24.4k

To determine if running process is started by system or user

Apr 17 2016 6:04 AM

I have problem with getting specific name of process, the problem with the process is i want to list out those process which is started by user. If the process is already running while start our PC then it should not list out.

I use this c# code for getting process name

foreach (Process theprocess in processlist) { MessageBox.Show("Process: " + theprocess.ProcessName); }

but it shows me all the running process. But i need to filter this process list.

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.