This app just gets the handles to the currently open windows and adds these with titles to a treeview control, will show all windows currently open on your system with the ability to close them down
Assumes
I know this code could be cleaned up and made recursive, etc.. but it is just an example of what can be done with a couple of API's