Guys --
I want to execute ShellExecute or CreateProcess and want to "capture" activated window.
To do this, I need to know hWnd.

Using hook, I can detect creation / activation of top-level windows.
But how to understand, this is "my" window or not ?

To test exename is not enough.
For apps similar Word / Notepad it's possible to test thread(process)id and to say exactly.
But explorer, iexplorer and some other are too clever.

Any ideas ?


------------------
E-MAIL: [email protected]