在win98里可以用
RegisterServiceProcess
win2k等:作成服务(service)

解决方案 »

  1.   

    he RegisterServiceProcess function registers or unregisters a service process. A service process continues to run after the user logs off. DWORD RegisterServiceProcess(DWORD dwProcessId, 
        DWORD dwType);ParametersdwProcessIdSpecifies the identifier of the process to register as a service process. Specifies NULL to register the current process. dwTypeSpecifies whether the service is to be registered or unregistered. This parameter can be one of the following values. Value Meaning
    RSP_SIMPLE_SERVICE Registers the process as a service process.
    RSP_UNREGISTER_SERVICE Unregisters the process as a service process.
     Return ValueThe return value is 1 if successful or 0 if an error occurs.
      

  2.   

    2k:
    write driver
    hook zwquerysysteminformation
      

  3.   

    有两种方法,一种是标题为空
    另一种是调用API 关键是那个文件'kernel32.dll'
    具体我明天给你代码
      

  4.   

    {$R *.DFM}
    function RegsiterServiceProcess(dwProcessId:Longint;const dwType:longint):DWORD;stdcall;far;external 'KERNEL32.DLL' name 'RegisterServiceProcess';procedure TForm1.FormCreate(Sender:TObject);
    var
      PId:DWORD;
    begin
      pId:=GetCurrentProcessId();
      if 0=RegisterServiceProcess(pId,1) then
        Messagebox(self.handle,'不能隐藏进程','错误',MB_OK);
    end;
    procedure TForm1.Button1Click(Sender:TObject);
    begin
      Self.hide;
    end;
    end;
      

  5.   

    98:RegisterServiceProcess
    2000:作成服务类型的