C
cqwty
Unregistered / Unconfirmed
GUEST, unregistred user!
var<br> _tmp_PROCESS_INFORMATION : PROCESS_INFORMATION;<br> _tmp_STARTUPINFO : STARTUPINFO;<br> saProcess,saThread:SECURITY_ATTRIBUTES;<br>begin<br> _tmp_STARTUPINFO.cb := sizeof(STARTUPINFO);<br> saProcess.nLength:=sizeof(saProcess);<br> saProcess.lpSecurityDescriptor:=PChar(nil);<br> saProcess.bInheritHandle:=true;<br> saThread.nLength:=sizeof(saThread);<br> saThread.lpSecurityDescriptor:=PChar(nil);<br> saThread.bInheritHandle:=true;<br> CreateProcess(nil,PChar(OpenDialog1.FileName),@saProcess,@saThread,false,CREATE_DEFAULT_ERROR_MODE,nil,nil,_tmp_STARTUPINFO,_tmp_PROCESS_INFORMATION);<br><br>end;