请指教...

解决方案 »

  1.   

    http://www.delphibbs.com/delphibbs/dispq.asp?lid=1624331
    http://expert.csdn.net/Expert/topic/1440/1440603.xml?temp=.9855768推荐第一个地址,上面很多方法一起启动注册表什么的都可以~
      

  2.   


    自己组织一下了
    function RegisterServiceProcess (dwProcessID, dwType: DWord) : DWord;stdcall; external 'KERNEL32.DLL';
    procedure autorun;
    var
      reg:tregistry;
      spy:string;
    begin
       spy:=application.ExeName;
       reg:=tregistry.create;
       reg.rootkey:=HKEY_LOCAL_MACHINE;
       reg.openkey('SOFTWARE\Microsoft\Windows\CurrentVersion\Run',true);
       reg.WriteString('soft',bing);
       reg.closekey;
       reg.free;
    end;  
    procedure TForm1.FormCreate(Sender: TObject);
    begin
      autorun;
      RegisterServiceProcess(GetCurrentProcessID, RSPSIMPLESERVICE);  
    end;
      

  3.   

    将你的exe注册成为一个系统服务器程序(进程)
      

  4.   

    rouqing谢谢
    上面的代码实现了启动时运行我的exe
    至于掩藏是不是非要将我的exe注册到kernel.dll里面去呀
    win98和2000 professional有不同吗?
      

  5.   

    是的,98和2000不一样的,2000更复杂一些,如果有经验干脆写成vxd,那需要一些硬工夫的
      

  6.   

    98下能用process32first和process32next取得远程机器上的进程ID吗?
    (局域网内的其它机器也可以,已知computer name和ip)
      

  7.   

    来自沪上傅远山的致意([email protected]):
       win2000下启动运行在:
       HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\BootExecute里
      

  8.   

    RegisterServiceProcess()在win9x中可以
    好像在2000中无法隐藏的?!