Try this mark, you might change the wShowWindow
to be something else if you don't want to hide
your application eg. SW_SHOWNORMAL;
Cheers
   Greg

procedure TThing.Execute;
var si : TStartupInfo;
     Appinfo : TProcessInformation; 

begin
    GetStartupInfo(si);
    si.dwFlags := STARTF_USESHOWWINDOW;
    si.wShowWindow := SW_HIDE; 
CreateProcess(nil,PChar(Commands[i]),nil,nil,False,0,nil,nil,si,Appinfo);
end;

Mark Derricutt wrote:

> On Mon, 4 Dec 2000, Alex Kouznetsov wrote:
> 
> 
>> 3) Instead of ShellExecute try to use CreateProcess (with properly released
>> process and thread handles immidiately after loading the application)
> 
> 
> Do you have any example code on using CreateProcess? The last time I was
> playing with that I could never actually get it working properly, is there
> anything special I need to do to pass params to this as well?  I think
> that might be were part of the problem is...

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to