哪位大虾用过CREATEPROCESS,请可小弟指点一下,必定给分。
xuxia 2002-01-08 02:35:17 procedure TForm1.Button1Click(Sender: TObject);
var stinfo:STARTUPINFO;
var stucinfo:PROCESS_INFORMATION ;
begin
stinfo.cb:=sizeof(stinfo);
CreateProcess(nil,'D:\CCINstall\callissue\setup.exe',0,0,True,NORMAL_PRIORITY_CLASS,0,0,stinfo,stucinfo);
Waitforsingleobject(stucinfo.hProcess,INFINITE);
CloseHandle(stucinfo.hProcess);
end;