Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Hide in Task Manager.

Hide in Task Manager.

Scheduled Pinned Locked Moved C#
csharphelp
17 Posts 12 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    astrovirgin
    wrote on last edited by
    #1

    Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

    S S C D P 9 Replies Last reply
    0
    • A astrovirgin

      Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

      S Offline
      S Offline
      Simon P Stevens
      wrote on last edited by
      #2

      Why would you want to do that? The user should always retain control of their PC.

      Simon

      B 1 Reply Last reply
      0
      • A astrovirgin

        Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

        S Offline
        S Offline
        SeMartens
        wrote on last edited by
        #3

        Hi astrovirgin, I would say that this is not possible. Your application will run as a process on your system, so you will see the process in the task manager. By the way, you are not developing some evil software, are you??? Regards Sebastian

        It's not a bug, it's a feature! Me in Softwareland.

        P 1 Reply Last reply
        0
        • S Simon P Stevens

          Why would you want to do that? The user should always retain control of their PC.

          Simon

          B Offline
          B Offline
          bcozican
          wrote on last edited by
          #4

          Its not possible. Any application running will show as a process in task manager. And I agree with Simon, the user should always be in control of his/her pc. Would you not want to be able to kill something when it lets your pc freak out..?

          1 Reply Last reply
          0
          • A astrovirgin

            Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

            C Offline
            C Offline
            Colin Angus Mackay
            wrote on last edited by
            #5

            Can't be done.

            Developer Day Scotland 2 - Free community conference Recent blog posts: *Throwing Exceptions *Training Developers * Method hiding or overriding - or the difference between new and virtual

            1 Reply Last reply
            0
            • A astrovirgin

              Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

              D Offline
              D Offline
              dan sh
              wrote on last edited by
              #6

              If it is just removing from the application tab of task manager then set ShowInTasbar property to false for the application.(Yes it removes the application from both task bar and task manager). If you wish to hide the process as well, then I think you should look into the NtQuerySystemInformation Function. MSDN will surely help you find something useful. Just make sure you handle your code very carefully.

              Loading signature. Please wait...

              C 1 Reply Last reply
              0
              • D dan sh

                If it is just removing from the application tab of task manager then set ShowInTasbar property to false for the application.(Yes it removes the application from both task bar and task manager). If you wish to hide the process as well, then I think you should look into the NtQuerySystemInformation Function. MSDN will surely help you find something useful. Just make sure you handle your code very carefully.

                Loading signature. Please wait...

                C Offline
                C Offline
                Colin Angus Mackay
                wrote on last edited by
                #7

                d@nish wrote:

                it removes the application from both task bar and task manager

                No it won't. There are plenty applications that can be seen in the Task Manager that have no visibility in the Taskbar.

                Developer Day Scotland 2 - Free community conference Recent blog posts: *Throwing Exceptions *Training Developers * Method hiding or overriding - or the difference between new and virtual

                D 1 Reply Last reply
                0
                • C Colin Angus Mackay

                  d@nish wrote:

                  it removes the application from both task bar and task manager

                  No it won't. There are plenty applications that can be seen in the Task Manager that have no visibility in the Taskbar.

                  Developer Day Scotland 2 - Free community conference Recent blog posts: *Throwing Exceptions *Training Developers * Method hiding or overriding - or the difference between new and virtual

                  D Offline
                  D Offline
                  dan sh
                  wrote on last edited by
                  #8

                  I just tried it and it worked for me(just from the application tab not from the processes). I am not sure about the cases where it wont work. Probably in ones where "Minimize to tray" feature is provided. :~

                  Loading signature. Please wait...

                  1 Reply Last reply
                  0
                  • A astrovirgin

                    Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #9

                    What valid reason could you have for wanting to do this? The whole point of showing things in the Task manager, is to provide information about the process and give the user the chance to kill the application if it starts to run away. The only applications I know of that try to hide their presence are generally malicious.

                    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                    My blog | My articles | MoXAML PowerToys

                    P 1 Reply Last reply
                    0
                    • A astrovirgin

                      Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

                      L Offline
                      L Offline
                      Luc Pattyn
                      wrote on last edited by
                      #10

                      That is easy, just replace taskmgr.exe by something you develop yourself. :)

                      Luc Pattyn [Forum Guidelines] [My Articles]


                      Fixturized forever. :confused:


                      P 1 Reply Last reply
                      0
                      • L Luc Pattyn

                        That is easy, just replace taskmgr.exe by something you develop yourself. :)

                        Luc Pattyn [Forum Guidelines] [My Articles]


                        Fixturized forever. :confused:


                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #11

                        And then get hired by Microsoft. Head up one of the OS development teams. It shouldn't take too long.

                        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                        My blog | My articles | MoXAML PowerToys

                        L 1 Reply Last reply
                        0
                        • P Pete OHanlon

                          And then get hired by Microsoft. Head up one of the OS development teams. It shouldn't take too long.

                          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                          My blog | My articles | MoXAML PowerToys

                          L Offline
                          L Offline
                          Luc Pattyn
                          wrote on last edited by
                          #12

                          No thanks. I would consider rewriting Task Manager if I really felt a need, which I don't, but it has to end there. X|

                          Luc Pattyn [Forum Guidelines] [My Articles]


                          Fixturized forever. :confused:


                          1 Reply Last reply
                          0
                          • S SeMartens

                            Hi astrovirgin, I would say that this is not possible. Your application will run as a process on your system, so you will see the process in the task manager. By the way, you are not developing some evil software, are you??? Regards Sebastian

                            It's not a bug, it's a feature! Me in Softwareland.

                            P Offline
                            P Offline
                            Paul Conrad
                            wrote on last edited by
                            #13

                            SeMartens wrote:

                            not developing some evil software

                            That is first thing that comes to mind when someone asks this type of question. What is it they are developing that they want to hide so bad? :suss:

                            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                            1 Reply Last reply
                            0
                            • P Pete OHanlon

                              What valid reason could you have for wanting to do this? The whole point of showing things in the Task manager, is to provide information about the process and give the user the chance to kill the application if it starts to run away. The only applications I know of that try to hide their presence are generally malicious.

                              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                              My blog | My articles | MoXAML PowerToys

                              P Offline
                              P Offline
                              Paul Conrad
                              wrote on last edited by
                              #14

                              Pete O'Hanlon wrote:

                              What valid reason could you have for wanting to do this?

                              There isn't any valid reason for it. As mentioned in the other post by others, the user must be able to control their PC and be able to kill processes when they have to.

                              Pete O'Hanlon wrote:

                              only applications I know of that try to hide their presence are generally malicious.

                              That is the impression I get.

                              "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                              1 Reply Last reply
                              0
                              • A astrovirgin

                                Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

                                N Offline
                                N Offline
                                nelsonpaixao
                                wrote on last edited by
                                #15

                                creating trojans there :-D well when you load task bar all current processes will appear/show, what trojans creators usually do is to name the process with a not suspicious, inocuo or commom name, you know? :-D But try to find a way to trigger the turn off of your trojan when the user hits the taskbar! after trigger the turn on when the taskbar closes. bad luck to you, darkvader :doh:

                                nelsonpaixao@yahoo.com.br trying to help & get help

                                1 Reply Last reply
                                0
                                • A astrovirgin

                                  Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

                                  D Offline
                                  D Offline
                                  Don Miguel
                                  wrote on last edited by
                                  #16

                                  For a C# (or .NET) application, this is not easy at all. The main issue is that the .NET framework did not provide the necessary API to acomplish this task, so you have to reside on Win32 API, or, even on kernel API.

                                  1 Reply Last reply
                                  0
                                  • A astrovirgin

                                    Hi Everyone, I have created an windows application in c#.net. Now what I want is that when I run the application, it should not be visible in Task Manager. Please help. Thanks in advance.

                                    G Offline
                                    G Offline
                                    guitmz
                                    wrote on last edited by
                                    #17

                                    Just saw ur question... Actually this is VERY possible. I made a code that hides the process from process tab. When u look at running process number, it stays the same, but the exe process isnt on list anymore. Quite hard to do, but possible :)

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups