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 disable Task manager, esc,windows keys..................

How to disable Task manager, esc,windows keys..................

Scheduled Pinned Locked Moved C#
tutorialquestion
13 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.
  • M Member 4235601

    I am want to create a simple windows application,it's some options for i want to add. If u run the application, At the time Task Manager,Esc,windows keys are disabled.how to do?

    A Offline
    A Offline
    Abhijit Jana
    wrote on last edited by
    #4

    When your application running, create one separate thread which will continiously checking for process "Taskmgr.exe", if found then kill the process :-\ . :laugh: Why are you trying to do this ?

    Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

    1 Reply Last reply
    0
    • M Member 4235601

      I am want to create a simple windows application,it's some options for i want to add. If u run the application, At the time Task Manager,Esc,windows keys are disabled.how to do?

      B Offline
      B Offline
      Blikkies
      wrote on last edited by
      #5

      In your registry at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ System set DisableTaskMgr value to 1 first you have to create a key in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ named: "System" with a subkey(REG_DWORD) named "DisableTaskMgr" with value set to 1

      D 1 Reply Last reply
      0
      • M Member 4235601

        I am want to create a simple windows application,it's some options for i want to add. If u run the application, At the time Task Manager,Esc,windows keys are disabled.how to do?

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #6

        Will the user want you to do that? Would you want someone to write an application that does that to your computer?

        1 Reply Last reply
        0
        • B Blikkies

          In your registry at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ System set DisableTaskMgr value to 1 first you have to create a key in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ named: "System" with a subkey(REG_DWORD) named "DisableTaskMgr" with value set to 1

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #7

          This value will be overwritten when policies refresh. It's not a permanent solution to the problem.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          H 1 Reply Last reply
          0
          • M Member 4235601

            I am want to create a simple windows application,it's some options for i want to add. If u run the application, At the time Task Manager,Esc,windows keys are disabled.how to do?

            R Offline
            R Offline
            Rathore Amit
            wrote on last edited by
            #8

            agree with Blikkies but in normal case we do not do that.. may be you want to do it for learning purpose.

            1 Reply Last reply
            0
            • M Member 4235601

              I am want to create a simple windows application,it's some options for i want to add. If u run the application, At the time Task Manager,Esc,windows keys are disabled.how to do?

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #9

              So, you're basically thinking of writing a virus, that will require the .NET framework to be installed! Imagine an error your "virus" might show: "Badass.exe needs the .NET framework 3.0 to be installed. Please install the .NET framework and try again." :doh: At least use the right tool for the right job.

              It is a crappy thing, but it's life -^ Carlo Pallini

              OriginalGriffO 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                So, you're basically thinking of writing a virus, that will require the .NET framework to be installed! Imagine an error your "virus" might show: "Badass.exe needs the .NET framework 3.0 to be installed. Please install the .NET framework and try again." :doh: At least use the right tool for the right job.

                It is a crappy thing, but it's life -^ Carlo Pallini

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #10

                Rajesh R Subramanian wrote:

                "Badass.exe needs the .NET framework 3.0 to be installed. Please install the .NET framework and try infect your PC again."

                FTFY 197+Mb virus! Thats got to be some kind of record!

                No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                1 Reply Last reply
                0
                • D Dave Kreskowiak

                  This value will be overwritten when policies refresh. It's not a permanent solution to the problem.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008
                  But no longer in 2009...

                  H Offline
                  H Offline
                  HimanshuJoshi
                  wrote on last edited by
                  #11

                  Given the speculations about intentions of OP, I think the solution better be temporary :)

                  D 1 Reply Last reply
                  0
                  • H HimanshuJoshi

                    Given the speculations about intentions of OP, I think the solution better be temporary :)

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #12

                    I wasn't commenting on the orignal post, but ont he wisdom of poking values into the Policies subkey.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008
                    But no longer in 2009...

                    1 Reply Last reply
                    0
                    • M Member 4235601

                      I am want to create a simple windows application,it's some options for i want to add. If u run the application, At the time Task Manager,Esc,windows keys are disabled.how to do?

                      L Offline
                      L Offline
                      leckey 0
                      wrote on last edited by
                      #13

                      Please read the forum guideline if you have questions.

                      Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]

                      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