View Full Version : Underlaying API Question
jassing
09-09-2008, 11:36 AM
What windows api's are the following using:
File.Run()
Shell.Execute()
If Shell.Execute() is passed true for "wait for return" is it looping thru an internal loop until the procid is closed?
Hi Josh,
Shell.Execute() uses ShellExecuteEx(), and File.Run() uses CreateProcess().
If you use wait for return, both actions use the MsgWaitForMultipleObjects() SDK call using the handle of the newly created process. Looping until the process has signaled that it is done.
I hope this helps.
jassing
09-09-2008, 12:24 PM
Hi Josh,
Shell.Execute() uses ShellExecuteEx(), and File.Run() uses CreateProcess().
If you use wait for return, both actions use the MsgWaitForMultipleObjects() SDK call using the handle of the newly created process. Looping until the process has signaled that it is done.
I hope this helps.
Thank you -- that's what I was expecting....
-josh
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.