I want to destroy all open windows in the Desktop except my application window. For example, if Microsoft Word, Excel, IE , Developer studio are all open then i want to close all these applications from my application. I've tried using GetNextWindow() API to get next active window in the z-order, but it gives me only the windows that are loaded from my application.

Help me out!!!


B R Balaji
COM Developer
Advanced Technology Labs
Chennai
India