How can you manage to close all Internet Explorer Windows, except one (knowing its handle)?
I tried to use the FindWindow API function to get the handle of each IE5 window (knowing their class: IEFrame), then compare this handle to the one of the IE window I didn't want to close, and then, if this handle was different, post a message to close the window, otherwise, quit.
Unfortunately, this code worked only once.
So, is there a way to get all the handles of all the IE window actually in memory?