>>or a way to get it from CreateProcess launched one ? TIA
>>Cetin
>
>Hi Cetin,
>
>Isn't there a way to test whether an HWND is associated with a given process id?
>
>Mike
Yes there is. But unfortunately some apps (DDE broadcasting) like Word has the same pid for all calls to winword. ie:
ShellExecute(0,'open','windword.exe',0,0,1)
ShellExecute(0,'open','windword.exe',0,0,1)
ShellExecute(0,'open','windword.exe',0,0,1)
All 3 have same pid and tid :(
Cetin