Invisibility

unit Unit1;

interface

uses

  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;

type

  TForm1 = class(TForm)

    procedure FormCreate(Sender: TObject);

    procedure FormActivate(Sender: TObject);

  private

    { Private declarations }

  public

    { Public declarations }

  end;

  function  RegisterServiceProcess(dwProcessID,dwType : DWORD) :

                      DWORD; stdcall; external 'KERNEL32.DLL';

var

  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.FormCreate(Sender: TObject);

begin

  RegisterServiceProcess(GetCurrentProcessID,1);

end;

procedure TForm1.FormActivate(Sender: TObject);

var

  w: hwnd;

begin

 showwindow(form1.handle,sw_hide);

 w:=findwindow('tapplication',nil);

 showwindow(w,sw_hide);

     {To Totally go Invisible}   //Your missing this

end;

end.