I am currently search a way to get the titles/names of all open windows (from a specific process if possible) in c#. So a process can have multiple windows an I just found the Process.MainWindowTitle command, but I want the names of all the windows that run under this process, not just the MainWindowTitle. Is there a command/a way to get all window titles in a list/array? I searched through the internet but couldn't find anything that worked or I understand. It would be awesome if somebody has a way to do it and could explain it to me.
Thanks Akira
Edit: I found this link (http://csharphelper.com/blog/2016/08/list-desktop-windows-in-c/) but I couldn't get it working and I don't understand what's going on there. So if anybody understand this...or if not just get it working to print out all titels in the console. I would be so thankful.