remove proc entry from tskmgr tab in NT

Ive read all of of the questions regarding making a process invsible on nt in the taskman but I still do not have a working solution. Are there any surefire ways to do this without madshi's codehook that now forbids hooking of certain system calls?
Can someone give me a working example in delphi?

Thanks,
Alloc
allocAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

calinutzCommented:
listening
0
rbohacCommented:
I spent quite a bit of time trying to find a solution to this one myself. I ended up finding this:

http://www.codeproject.com/system/preventclose.asp

the source files contain a folder called "HookNTQuerySystemInformation"

Compile the DLL and call it like so...

(**************************************************************************

        SetProcessHook hooks NTQuerySystemInformation in Windows XP/2000/NT
        and hides the application from the process list
       
***************************************************************************)
procedure SetProcessHook;
var SetHookFn: function(ProcessID:LongInt):Integer; CDecl;
begin
  FDLLHandle := LoadLibrary('HookNTQSI.dll');
  if FDllHandle <> 0 then begin
    @SetHookFn := GetProcAddress(FDLLHandle,'Hook');
    if @SetHookFn <> nil then
      begin
      SetHookFn(GetCurrentProcessId);
      ProcessHookLoaded := True;
      end;
  end;
end;

procedure UnSetProcessHook;
var UnSetHookFn: function:Integer; CDecl;
begin
  if not ProcessHookLoaded then exit;
  if FDllHandle <> 0 then begin
    @UnSetHookFn := GetProcAddress(FDLLHandle,'UnHook');
    if @UnSetHookFn <> nil then
      UnSetHookFn;
  FreeLibrary(FDLLHandle);
  end;
end;
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

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.