-
Waiting for a window
I have an app that's running a loop to wait for the task manager to appear (class "#32770", title "Windows Task Manager"). This works just fine, but I would like for my program to use as little resources as possible - I was wondering if I could use WaitForSingleObject to get this done, but the problem is my application isn't starting the task manager - windows is - so I don't have its process id. I realize I could go out and get it, but I would still have to run some kind of loop to wait for the window to appear to get it's id.
Simply, I want a nice loopless (or minimal resources used) method of knowing when a hwnd is loaded, where my app isn't loading the hwnd.
-
i dont think its possible :/
-
Set a window creation hook.