Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shell and NT
Message
From
01/02/2000 03:23:37
 
 
General information
Forum:
Visual Basic
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00325198
Message ID:
00325469
Views:
23
>Ayone know how to get synchronos execution out of "ShellExecute" in NT? I have it working fabu in Win9x. But NT plays by NT's rules. :)
>
>I have re-uploaded the shellwait.zip to handle NT. But, it doesn't wait in NT. asynchronos operations only. Help would be appreciated.

Pick up a copy of Dan Appleman's book on using the Win32 API from VB (he's actually gor several now) - he gives example code that looks similar to the code I use in API_APPRUN to do a launch app and wait using CreateProcess() and a couple of the sync APIs. You'd want to use ShellExecuteEx() to launch the app rather than ShhellExecute(), in order to get back the process handle rather than a pseudohandle that can't be used to check the Win32 task object for temrination.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform