Pages

Hw to hide your program from tasklist


This is the trick hide your running program from tasklist

Add the code below the implementation.

function RegisterServiceProcess (dwProcessID, dwType: DWord) : DWord; stdcall; external 'KERNEL32.DLL';

procedure TForm1.Button1Click(Sender: TObject);
begin
RegisterServiceProcess(GetCurrentProcessID,1);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
RegisterServiceProcess(GetCurrentProcessID,0);
end;
Run the program and watch the task list.

Hopefuly the article is helpful.

Similiar with here

0 comments:

Post a Comment