if you don't need the control that CreateProcess() provides, you can use
ShellExecute()
theoratically speaking CreateProcess() can be slightly faster, but
practically you can use either, again, given that you don't need the
specific features provided by each functions. checkout the win32 api docs
for details.
--
http://www.chami.com/tips/delphi/
Kevin Dwan wrote in message <3601A870...@blueberry.com>...
>Is it preferable to use CreateProcess instead of ShellExecute ..
I would say that it depends on the degree of control you want. If you just
need "fire-and-forget" usability, I would say that ShellExecute() was to be
prefered since it's easier to use (and does return a handle if later
needed) - but if you want to have full control (f.x. launching a hidden dos
app etc) better use CreateProcess()
Troels S Eriksen
http://home8.inet.tele.dk/tserikse/
---------------------------
When armagedon comes, head for the hills.
It won't help, but the view is better.
Kevin,
Microsoft encourages the use of ShellExecute and ShellExecuteEx over
CreateProcess. The former functions allow system policies to be used to
put restrictions on what applications a user may execute,
Peter Below (TeamB) 10011...@compuserve.com)
No replies in private e-mail, please, unless explicitely requested!