How can I get a list of currently running applications or foreground processes in Windows?
I mean applications that have a window for the real. Non background services / processes. I want to access the same list that the task manager shows when we open it.
Is there any way? Any type of solution is acceptable. Any command or .NET code or something else. I just want to get this list programmatically.
Is it possible?
I'm tired of the tasklist, but it gives me all the services and processes, even background ones.
Is there any logic that I could implement?
source share