Cetin,
Since you are working with FLLs and such, you may be able to implement EnumThreadWindows (it requires a callback function). This will give you the handle to all windows assocaited with the thread. If you use CreateProcess to create the process, the PROCESS_INFORMATION structure is filled with the thread ID to use with this function.
HTH.
>>
>>Cetin,
>>
>>Knowing you, I've should've thought that you would've before posting.< s >
>>
>>Let me give it some thought and do some research and, if I come up with something, I'll post back.
>
>Thanks but do not waste your time much. Actually monday is start of re-search after I noticed I was missing some apps in between. Here is more detailed of what I'm trying to do :
>
>
>*Requester
>reqID
>*Apps table
>ID,AppName,Params,StartInDir
>*Log
>reqID,ID,started,ended
>
Kind of tracker.
>
>Main app gets apps to launch from a listbox (multiselect).
>For each selected one launches a "watcher" (watcher is launched with ShellExec so control is returned immediately)
>
>*Watcher
>ShellExecute or CreateProcess or anything that does it
>I need hwnd here to pass back
>
>Cetin
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao