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
09/01/2003 12:46:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00738764
Message ID:
00739881
Views:
16
>>>>OK I gave up :)
>>>>Now creating a file with a fixed name in watcher. If another watcher sees the file, it waits for the file to be erased leaving time EnumWindows to find the correct window.
>>>>Thanks to all of you for your helps.
>>>
>>>Cetin,
>>>
>>>One more thought. How about using ShellExecuteEx() instead? That could provide a true instance handle for you.
>>
>>Does it ? In its doc it says :
>>"Although hInstApp is declared as an HINSTANCE for compatibility with 16-bit Microsoft Windows applications, it is not a true HINSTANCE. It can only be cast to an integer and compared to either 32 or the SE_ERR_XXX error codes.
>>"
>Cetin,
>
>Doh! I meant process handle. That help any?

In another thread Herman said I could use process (OpenProcess and Sync). Unfortunately it doesn't help either. There is only one pid for multiple word launches :(
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