Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to get HWND of ShellExecute launched app
Message
 
 
To
07/01/2003 11:21:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00738764
Message ID:
00738985
Views:
38
This message has been marked as the solution to the initial question of the thread.
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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform