During our machine Run we can find some process get started by the system in Task Manager.
For example, Sometimes automatically Microsoft Edge gets started in the background and we can see in Task Manager.
So is there any Windows API to find whether a process is started by User or by system....?
I mean windows API to differentiate Foreground windows and background windows