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 12:42:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00738764
Message ID:
00739380
Views:
23
Larry,
Almost done :) Enumthreadwindows gets all top windows as you said. One thing to overcome.
CreateProcess doesn't return a valid threadid 2nd time it's called (with an app like word). Returned dwThreadID is not locatable with Spy++ too. If I keep the first call's threadID and use it then EnumThreadWindows returns all window handles (document1, document2).
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.
Ç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
Next
Reply
Map
View

Click here to load this message in the networking platform