I am trying to get all the window handles of applications that have a taskbar icon only.
The solutions I have converted to C# that have failed:
Enumerate windows like alt-tab does
Enumerate windows like alt-tab does
Enumerate windows like alt-tab does
And a couple that I lost track of already. All these solutions either crash or bring up windowless processes like svchost, plugin processes, etc.
Basically I just need the windows that are actively available in the task bar with icons. I am using the window handle of
Process.MainWindowHandle
What are some working solutions to this? Is there a thread with a working solution that I missed?