怎么我用createprocess执行外部程序显示不出窗体呢?(50分)

  • 主题发起人 主题发起人 cqwty
  • 开始时间 开始时间
C

cqwty

Unregistered / Unconfirmed
GUEST, unregistred user!
var<br> &nbsp;_tmp_PROCESS_INFORMATION : PROCESS_INFORMATION;<br> &nbsp;_tmp_STARTUPINFO : STARTUPINFO;<br> &nbsp;saProcess,saThread:SECURITY_ATTRIBUTES;<br>begin<br> &nbsp; _tmp_STARTUPINFO.cb := sizeof(STARTUPINFO);<br> &nbsp; saProcess.nLength:=sizeof(saProcess);<br> &nbsp; saProcess.lpSecurityDescriptor:=PChar(nil);<br> &nbsp; saProcess.bInheritHandle:=true;<br> &nbsp; saThread.nLength:=sizeof(saThread);<br> &nbsp; saThread.lpSecurityDescriptor:=PChar(nil);<br> &nbsp; saThread.bInheritHandle:=true;<br> &nbsp; CreateProcess(nil,PChar(OpenDialog1.FileName),@saProcess,@saThread,false,CREATE_DEFAULT_ERROR_MODE,nil,nil,_tmp_STARTUPINFO,_tmp_PROCESS_INFORMATION);<br><br>end;
 
好像其中有个参数指定是否隐藏执行
 
后退
顶部