Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to get HWND of ShellExecute launched app
Message
From
08/01/2003 03:49:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00738764
Message ID:
00739204
Views:
25
I thought that but honestly didn't try.
I'm having difficulty understanding threads. It should mean an app (no?). Collecting thread and process ids I get same values for multiple instances of apps - like word (CreateProcess and RunAndWait samples note this).
I'll try EnumThreadWindows. Thanks.
Cetin

>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform