I know you can get a list of the current processes that are running by using Process[] processes = Process.GetProcesses();
or Process[] processes = Process.GetProcessesByName("processName");
However I need to grab the current applications that are running, not necessarily the specific processes. The reason is because sometimes there are processes that run in the background that relate to a certain application however the actual application itself is not running. But for my purposes I need to know if the actual application itself is running.
Is there a way to do this in C#?
Edit: Apparently I haven't made myself clear. For example in Task Manager you can see a list of Applications that are currently running, as well as a list of Processes that are currently running. I'm trying to grab the list of Applications that one can see in Task Manager, not the extensive list of processes
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…