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. how to hide c# windows Application from windows task manager processess list..(windows 2000)

how to hide c# windows Application from windows task manager processess list..(windows 2000)

Scheduled Pinned Locked Moved C#
csharpdelphitutorial
12 Posts 6 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.
  • S Offline
    S Offline
    skn2k
    wrote on last edited by
    #1

    Hello all; Is there a way in c#(.net) to hide an application from windows task manager's processess list.. I want my c# application to be invisible in the computer where it is installed. Even if the user goes to task manager using ctrl+alt+del and task manager... Any idea on how to disable ctrl+alt+del key sequence in c# on windows NT and above platforms in c#.. I started developing a application using delphi ( as it can create Global Hook. And i can trap the key sequence and pop up a box when ever ctrl+alt are pressed thus forcing the user to miss del key) and use that DLL in c#. Any ideas & suggestions are appreciated.. Thanks

    N S 3 Replies Last reply
    0
    • S skn2k

      Hello all; Is there a way in c#(.net) to hide an application from windows task manager's processess list.. I want my c# application to be invisible in the computer where it is installed. Even if the user goes to task manager using ctrl+alt+del and task manager... Any idea on how to disable ctrl+alt+del key sequence in c# on windows NT and above platforms in c#.. I started developing a application using delphi ( as it can create Global Hook. And i can trap the key sequence and pop up a box when ever ctrl+alt are pressed thus forcing the user to miss del key) and use that DLL in c#. Any ideas & suggestions are appreciated.. Thanks

      N Offline
      N Offline
      Nnamdi Onyeyiri
      wrote on last edited by
      #2

      why do you need to do this, :~ a trojan perhaps :rolleyes: i think the form class has a member to hide it from the taskbar, not sure about the process list.


      :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
      :suss:"All programmers are playwrights and all computers are lousy actors."

      A 1 Reply Last reply
      0
      • N Nnamdi Onyeyiri

        why do you need to do this, :~ a trojan perhaps :rolleyes: i think the form class has a member to hide it from the taskbar, not sure about the process list.


        :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
        :suss:"All programmers are playwrights and all computers are lousy actors."

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Perhaps not a trojan:). But a security component i am building which will be eventually be installed on number of Servers at an organization to log Keyboard activity. The form's show in taskbar property just hides from task bar. But the application exe is listed in the processes.

        N 1 Reply Last reply
        0
        • A Anonymous

          Perhaps not a trojan:). But a security component i am building which will be eventually be installed on number of Servers at an organization to log Keyboard activity. The form's show in taskbar property just hides from task bar. But the application exe is listed in the processes.

          N Offline
          N Offline
          Nnamdi Onyeyiri
          wrote on last edited by
          #4

          but why hide it from the processes? are all the users advanced enough to know how to close it? most users on the network at work barely know how to check emails.


          :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
          :suss:"All programmers are playwrights and all computers are lousy actors."

          A 1 Reply Last reply
          0
          • N Nnamdi Onyeyiri

            but why hide it from the processes? are all the users advanced enough to know how to close it? most users on the network at work barely know how to check emails.


            :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
            :suss:"All programmers are playwrights and all computers are lousy actors."

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            I am talking about System engineers/Administrators who may accidentally or wantedly corrupt the server. in this case, they being the system admins very well know to find out the application in the processes and kill em before they mis-handle or delete or go against their professional ethics even to the extent of formatting the machine before they leave the organization.. in this case, the org. will very well want to know who was exactly responsible ... i think you got my point.. Gurus, please suggest me an idea...

            M 1 Reply Last reply
            0
            • A Anonymous

              I am talking about System engineers/Administrators who may accidentally or wantedly corrupt the server. in this case, they being the system admins very well know to find out the application in the processes and kill em before they mis-handle or delete or go against their professional ethics even to the extent of formatting the machine before they leave the organization.. in this case, the org. will very well want to know who was exactly responsible ... i think you got my point.. Gurus, please suggest me an idea...

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #6

              I guess I wouldn't write this in C#. I would write it in C++ as a service or a device driver (probably a service). I have no idea how to do that, but C# definitely does not seem like the right tool. Marc

              S 1 Reply Last reply
              0
              • M Marc Clifton

                I guess I wouldn't write this in C#. I would write it in C++ as a service or a device driver (probably a service). I have no idea how to do that, but C# definitely does not seem like the right tool. Marc

                S Offline
                S Offline
                skn2k
                wrote on last edited by
                #7

                I agree; But Microsoft promises c# to be the most powerful language after c++ giving control to the System programming. I guess there is a way or atleast is there a way to activate the process immediately if any user kills it. For example in Visual Studio .net IDE, when you create a C# or VB.net Web Application project, you always see wp_.... process in the processes. Even if you kill it, the process comes up right way.. how Can i implement something like this? Even if the user kills my application process, can i re-start it immediately...??

                1 Reply Last reply
                0
                • S skn2k

                  Hello all; Is there a way in c#(.net) to hide an application from windows task manager's processess list.. I want my c# application to be invisible in the computer where it is installed. Even if the user goes to task manager using ctrl+alt+del and task manager... Any idea on how to disable ctrl+alt+del key sequence in c# on windows NT and above platforms in c#.. I started developing a application using delphi ( as it can create Global Hook. And i can trap the key sequence and pop up a box when ever ctrl+alt are pressed thus forcing the user to miss del key) and use that DLL in c#. Any ideas & suggestions are appreciated.. Thanks

                  S Offline
                  S Offline
                  Stephane Rodriguez
                  wrote on last edited by
                  #8

                  My suggestions are as follow : - either write a dll, and let it be hosted by the operating system as a COM dll (for instance). Doing this, by definition, you won't see it in the processlist, because only .exe are listed. - write a Dll and get it run by DllHost.exe or RunDLL32.exe depending on the operating system. (see MSDN for further details). Doing so, you still see DllHost.exe somehow in the process list (or svchost.exe for services) but no one would dare to stop it because this name brings nothing particular into attention.

                  N 1 Reply Last reply
                  0
                  • S Stephane Rodriguez

                    My suggestions are as follow : - either write a dll, and let it be hosted by the operating system as a COM dll (for instance). Doing this, by definition, you won't see it in the processlist, because only .exe are listed. - write a Dll and get it run by DllHost.exe or RunDLL32.exe depending on the operating system. (see MSDN for further details). Doing so, you still see DllHost.exe somehow in the process list (or svchost.exe for services) but no one would dare to stop it because this name brings nothing particular into attention.

                    N Offline
                    N Offline
                    nitro666
                    wrote on last edited by
                    #9

                    Just launch your application when you receive WM_DESTROY or WM_CLOSE. Your current program will be closed but you will have a new session in memory. I don't think MS wants it to be possible to hide processes from the task manager list. The API shouldn't have anything about this. Nd.

                    S 1 Reply Last reply
                    0
                    • N nitro666

                      Just launch your application when you receive WM_DESTROY or WM_CLOSE. Your current program will be closed but you will have a new session in memory. I don't think MS wants it to be possible to hide processes from the task manager list. The API shouldn't have anything about this. Nd.

                      S Offline
                      S Offline
                      Stephane Rodriguez
                      wrote on last edited by
                      #10

                      That one is a virus! not a process anymore. I am not sure you're able to shut down normally your computer using this idea.


                      And I swallow a small raisin.

                      N 1 Reply Last reply
                      0
                      • S skn2k

                        Hello all; Is there a way in c#(.net) to hide an application from windows task manager's processess list.. I want my c# application to be invisible in the computer where it is installed. Even if the user goes to task manager using ctrl+alt+del and task manager... Any idea on how to disable ctrl+alt+del key sequence in c# on windows NT and above platforms in c#.. I started developing a application using delphi ( as it can create Global Hook. And i can trap the key sequence and pop up a box when ever ctrl+alt are pressed thus forcing the user to miss del key) and use that DLL in c#. Any ideas & suggestions are appreciated.. Thanks

                        S Offline
                        S Offline
                        Stephane Rodriguez
                        wrote on last edited by
                        #11

                        I had forgotten the trick but now I remember. You can use windowstations and desktops, they are objects that Microsoft introduced along with Windows NT. These two objects allow to run processes in separate windowstations and desktops that the default one, which is the actual interactive windowstation and default desktop attached to it. You may either create a new desktop on the current windowstation, winsta0, and then run processes on it. You may also create a new windowstation as well. Complete code can be found on MSDN with keyword search winsta0. That's plain raw C++ code. Be sure to also prepare code for destroying the processes : as you will not even see them in the task manager, it will be slightly harder to stop them...


                        And I swallow a small raisin.

                        1 Reply Last reply
                        0
                        • S Stephane Rodriguez

                          That one is a virus! not a process anymore. I am not sure you're able to shut down normally your computer using this idea.


                          And I swallow a small raisin.

                          N Offline
                          N Offline
                          nitro666
                          wrote on last edited by
                          #12

                          Well the virus isn't visible in the task manager list...At least, there is a difference...:) I have to recognize that old windows shouldn't be able to shutdown the computer. But W2000 and WinXP don't allow more processes creation after shutdown, so it's ok. Nd.

                          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