CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    hide from task manager

    how to hide a process from windows task manager?

    i want it to work in XP, VISTA and 7
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  2. #2
    Join Date
    May 2007
    Posts
    1,546

    Re: hide from task manager

    There's absolutely no good reason to do this, so no. This is typically what rootkits do.
    www.monotorrent.com For all your .NET bittorrent needs

    NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: hide from task manager

    Easiest way is to just disguise it by making it show up as "svchost.exe". It'll get lumped in with all the others, and will become indistinguishable. That would be the safest route to follow actually, because ordinary programs should have a way to be closed by the TaskManager - that is why the TaskManager exists.

    Here is a VB.NET way : http://www.codeguru.com/forum/showthread.php?t=406555

    So it is indeed possible, but I would really, really advise against it.

  4. #4
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: hide from task manager

    if i don't want to hide the process i prefer to have a watcher process for the main process and when main process get killed the watcher process will restart it and vice versa.

    thanks both of you.
    rootkit has several main problem and the vb code works only for XP.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  5. #5
    Join Date
    May 2007
    Posts
    1,546

    Re: hide from task manager

    If you want an auto restarting application run it as a windows service. Thats one of the features services offer.
    www.monotorrent.com For all your .NET bittorrent needs

    NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.

  6. #6
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: hide from task manager

    yes. i have also decided to create a service for this issue.
    thanks.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  7. #7
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: hide from task manager

    Yep, a service is actually what I meant with post #3 :

    Sorry it didn't come out right

  8. #8
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: hide from task manager

    hannes in post #3 you gave me the clue because when i saw that solution is not platfrom-independent (as i expected) i tried to change my approach so thank you very much for helping me always my friend.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured