I want to know if there are no IE windows open or if there is atCode:#include <windows.h> void main(){ while(1){ while(FindWindow("IEFrame", NULL)); MessageBox(0, "none", "", 0); while(!FindWindow("IEFrame", NULL)); MessageBox(0, "one", "", 0); } }
least one open. The code works, but it ties up 100% of my CPU
and also I want to be able to run other code while this code is
running.
I thought of creating a separate thread to run the code above
but will I still have the same problem with all the resources being
tied up?




Reply With Quote