请问WinExec怎么写才会使程序运行隐藏起来!(10分)

  • 主题发起人 主题发起人 xiny
  • 开始时间 开始时间
&nbsp;确实不能hide,try follow:<br>&nbsp; WinExec(PChar('Calc.Exe',sw_minimize);<br>&nbsp; ShowWindow(FindWindow(nil,'计算器'),sw_hide);<br>&nbsp;<br>&nbsp; 这样可以实现,我试过! {B-)
 
&nbsp;Sorry,少了')'<br>&nbsp; 确实不能hide,try follow:<br>&nbsp; WinExec(PChar('Calc.Exe'),sw_minimize);<br>&nbsp; ShowWindow(FindWindow(nil,'计算器'),sw_hide);<br>&nbsp;<br>&nbsp; 这样可以实现,我试过! {B-)
 
想不通,为什么不能隐藏打开,hehe<br>我用shellexecute也不行,<br><br>如果先把运行的程序打开,再隐藏起来,这样很容易被人发现,程序根本就不好看。hehe<br>我想一定有办法的。
 
&nbsp; 用CreateProcess试试!
 
我发现用<br>win95+ie4.0运行时用sw_hide会被隐藏!<br>win98+ie4.0运行时用sw_hide不会被隐藏!<br><br>到底哪儿有问题呢。能不能把win98改成win95一样呢?<br>
 
&nbsp;你将Win95下得Calc.exe拷到Win98下,怎么样,隐藏了吧!!! &nbsp; &nbsp;{B-)
 
多人接受答案了。
 
后退
顶部