Question : how to hide my application from tasklist? (delphi)

Hi!
I tried to hide my application with following code:

var i:longint;
    handle:longint;
begin
i:=GetCurrentProcessId;
handle:=OpenProcess(PROCESS_ALL_ACCESS,true,i);
RegisterServiceProcess(handle,1);
end;

It do not work. Any idea?

Answer : how to hide my application from tasklist? (delphi)


RegisterServiceProcess(0, 1)

will hide your app from the task list.
Random Solutions  
 
programming4us programming4us