I am trying to get a list of all processes which are of the type "app" (as opposed to "Background Process" or "Windows Process").

Unfortunately, although I know that...
var processList = Process.GetProcesses(); will get me a list of all processes running on the system, I am at a loss for how to get the 'type' of the process. 'Process' does have a method 'GetType', but it doesn't seem to refer to the "type" that I'm referring to, and that TaskManager refers to in the above image.
Does anyone know how I can get this value that Task Manager refers to as "type" into a variable for a given process?
Note: C#.
Processclass, but you can correlate information about windows that are present and the processes that own them.MainWindowHandleproperty; not sure of proper using of theRefreshmethod. In any case: a process has a main window associated with it only if the process has a graphical interface, otherwise theMainWindowHandlevalue is zero.