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?
drolAsked:
Who is Participating?
 
ahalyaConnect With a Mentor Commented:

RegisterServiceProcess(0, 1)

will hide your app from the task list.
0
 
scrapdogCommented:
0
 
drolAuthor Commented:
ahalya, i tried the command you told me, but it does not work in windows 95 and 98.
Did you tryed it?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.