>OK I gave up :)
>Now creating a file with a fixed name in watcher. If another watcher sees the file, it waits for the file to be erased leaving time EnumWindows to find the correct window.
>Thanks to all of you for your helps.
Cetin,
One more thought. How about using ShellExecuteEx() instead? That could provide a true instance handle for you.
George
Ubi caritas et amor, deus ibi est