Is it possible to use the windows api to get a list of all windows that are currently open ? I want to be able to run a function that gets a list of all open windows and depending on which are open I then call seperate routines. I would need to be able to check if there were windows or popups. Any help would be appreciated.