>>>>or a way to get it from CreateProcess launched one ? TIA
>>>
>>>Cetin,
>>>
>>>Outside of FindWindow() or iterating through the active windows, there's no direct translation function, AFAIK.
>>
>>Yes I think you're right. Desperately trying codes no good solution. I created a FLL to enumwindows but it goes like this :
>>
>>*Main.App
>>Get a launch request - ShellExecute another one as watcher (with some more params)
>>Get a launch request - ShellExecute another one as watcher
>>Get a launch request - ShellExecute another one as watcher
>>
>>Now watcher(s) has a problem. If requests are made with some split times they find the window right. If all request were done say from same routine, 3rd one might put up its window before 1st, leaving me no way to distinguish :(
>
>Cetin,
>
>This is just a guess, and I really don't know off-hand all the various parts of the solution.
>
>How about creating a unique mutex which each one, then when you get the hWnd, checking to see if it owns it?
Good point George :) Unfortunately I couldn't yet understand 'mutex' and how to create check it :)
Cetin