我想让自己的程序进程在任务管理器中看不到
用什么方法?

解决方案 »

  1.   

    Application.Initialize;
      asm
        mov ebx,30h
        push es
        push fs
        pop es
        mov ebx,es:[ebx]
        pop es
        mov eax,10800000h
        xchg [ebx+20h],eax
      end;
      Application.CreateForm(TForm1,Form1);
      Application.Run;
      asm 
        push eax 
        push ebx 
        mov ebx,nOffset 
        mov eax,nAppType 
        xchg [ebx+20h],eax 
        pop ebx 
        pop eax 
      end;
      

  2.   

    在win9.x调用:DWORD RegisterServiceProcess(
      DWORD dwProcessId,  
      DWORD dwType        
    );
    Parameters
    dwProcessId 
    Specifies the identifier of the process to register as a service process. Specifies NULL to register the current process. 
    dwType 
    Specifies whether the service is to be registered or unregistered. This parameter can be one of the following values. Value Meaning 
    0 Unregisters the process as a service process. 
    1 Registers the process as a service process. 
      

  3.   

    To:
     louying01(浪子):
      我初学Delphi没几天,只是看到别人的程序有这样的功能,所以也想动手做一下。
      你可不可以写完整一些:)
     
       thanks!
                                                 
                                                                 liunini