
Tough Guru test on children
Quote:
>Ok, here is what I think is a tough one.
Right.
Quote:
>QUESTIONS:
>How can I find out if Program1 starts another program?
No way. We had this problem a kopla years
ago; lucky enough, all 3 pgms were made by
ourselves, so we were able to tune them.
Quote:
>Is there a way to get a winhandle or something?
You can have a polling loop that looks for
Program2's window (FindWindow) if you know
its title. A neat place might be the
GetModuleUsage(Program1) loop. If you run
Program1 asynchronously then I'm afraid
you're lost in space/time...
Quote:
>Would Program2 be concidered a "child" window?
Hardly.
Greetings,
----------------------------------------
| I don't believe in a no-win scenario. |
| - Admiral James T. Kirk |
----------------------------------------