|
-
Aug 21st, 2003, 12:32 PM
#1
Thread Starter
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|