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 / C++ / MFC
  4. How to block ctrl+alt+del in WinNT

How to block ctrl+alt+del in WinNT

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
12 Posts 5 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.
  • V Offline
    V Offline
    Valera241176
    wrote on last edited by
    #1

    I know one way - using GINA. We can write Gina, export appropreate functions for winlogon as it is written in MSDN and the task is solved. The disadvantages is: -We need the rights to write down in HKEY_LOCAL_MACHINE; -Our GINA could be overriten by another one; -If something goes wrong, user cannot login at all and has to reinstall the system. Is it possible to solve this problem, hooking the keyboard events before they occured in winlogon.exe or take them directly from the keyboard ports or drivers? Appreciate any suggestions

    C D 2 Replies Last reply
    0
    • V Valera241176

      I know one way - using GINA. We can write Gina, export appropreate functions for winlogon as it is written in MSDN and the task is solved. The disadvantages is: -We need the rights to write down in HKEY_LOCAL_MACHINE; -Our GINA could be overriten by another one; -If something goes wrong, user cannot login at all and has to reinstall the system. Is it possible to solve this problem, hooking the keyboard events before they occured in winlogon.exe or take them directly from the keyboard ports or drivers? Appreciate any suggestions

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      what is the name of your application? i want to make sure i never install something that tries to disable ctrl-alt-del, for any reason. -c


      Image tools: ThumbNailer, Bobber, TIFFAssembler

      V 1 Reply Last reply
      0
      • C Chris Losinger

        what is the name of your application? i want to make sure i never install something that tries to disable ctrl-alt-del, for any reason. -c


        Image tools: ThumbNailer, Bobber, TIFFAssembler

        V Offline
        V Offline
        Valera241176
        wrote on last edited by
        #3

        Do not be so suspicious. It should be done to protect parents from any occasional actions of their children.

        C 1 Reply Last reply
        0
        • V Valera241176

          Do not be so suspicious. It should be done to protect parents from any occasional actions of their children.

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          Valera241176 wrote: It should be done i disagree. i think it should never be done. there are certain basic functions of Windows that are essential. ctrl-alt-del is one of them. -c


          Image tools: ThumbNailer, Bobber, TIFFAssembler

          S 1 Reply Last reply
          0
          • C Chris Losinger

            Valera241176 wrote: It should be done i disagree. i think it should never be done. there are certain basic functions of Windows that are essential. ctrl-alt-del is one of them. -c


            Image tools: ThumbNailer, Bobber, TIFFAssembler

            S Offline
            S Offline
            Scott H Settlemier
            wrote on last edited by
            #5

            I agree with Chris. I was surprised looking over some of my bathroom reading materials that the JAN 2002 edition of Windows:: Developer has in big bold letters at the top of the cover "Disabling Ctrl+Alt+Delete on Win NT/2000". What were they thinking?

            J 1 Reply Last reply
            0
            • S Scott H Settlemier

              I agree with Chris. I was surprised looking over some of my bathroom reading materials that the JAN 2002 edition of Windows:: Developer has in big bold letters at the top of the cover "Disabling Ctrl+Alt+Delete on Win NT/2000". What were they thinking?

              J Offline
              J Offline
              Joan M
              wrote on last edited by
              #6

              I need that, without that I would not be able to program under windows... I create programs that are used to move machine prototypes (www.tamelectromecanica.com), if I can't prevent the user to modify anything in the OS, the machine would not be as safe as it should... 1. My OS loads automatically and loads automaitcally my apps. 2. I have a System wide keyboard and mouse hook in order to prevent something to be done whilst the application is being loaded and when it is loaded also. 3. I must avoid the user to be able to exit my app. 4. I need to be able to avoid Ctrl Alt Del in order to prevent the user to shut down the PC in an incorrect way, to load any other app. or to do anything that would not be allowed for the right care of the machine. I'm agree that in most cases handling this is stupid and that could be used in order to write viruses and other things, but in my case, its needed... NOTE: Imagine that one of those machines would cost 300000$, and that one user gets fired, if the user knows anything about computers, he/she could make the machine crash and it would be a great pain for the machine owner.

              https://www.robotecnik.com freelance robots, PLC and CNC programmer.

              V 1 Reply Last reply
              0
              • V Valera241176

                I know one way - using GINA. We can write Gina, export appropreate functions for winlogon as it is written in MSDN and the task is solved. The disadvantages is: -We need the rights to write down in HKEY_LOCAL_MACHINE; -Our GINA could be overriten by another one; -If something goes wrong, user cannot login at all and has to reinstall the system. Is it possible to solve this problem, hooking the keyboard events before they occured in winlogon.exe or take them directly from the keyboard ports or drivers? Appreciate any suggestions

                D Offline
                D Offline
                Dudi Avramov
                wrote on last edited by
                #7

                You can disable the buttons of the opened window by setting some values in the registry Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer. Read Disable Windows NT alt-ctrl-del dialog button

                V 1 Reply Last reply
                0
                • J Joan M

                  I need that, without that I would not be able to program under windows... I create programs that are used to move machine prototypes (www.tamelectromecanica.com), if I can't prevent the user to modify anything in the OS, the machine would not be as safe as it should... 1. My OS loads automatically and loads automaitcally my apps. 2. I have a System wide keyboard and mouse hook in order to prevent something to be done whilst the application is being loaded and when it is loaded also. 3. I must avoid the user to be able to exit my app. 4. I need to be able to avoid Ctrl Alt Del in order to prevent the user to shut down the PC in an incorrect way, to load any other app. or to do anything that would not be allowed for the right care of the machine. I'm agree that in most cases handling this is stupid and that could be used in order to write viruses and other things, but in my case, its needed... NOTE: Imagine that one of those machines would cost 300000$, and that one user gets fired, if the user knows anything about computers, he/she could make the machine crash and it would be a great pain for the machine owner.

                  V Offline
                  V Offline
                  Valera241176
                  wrote on last edited by
                  #8

                  to Joan Murt: Is it just the cosiderations about "is is good or bad to block ctrl+alt+del" or you have some original solution? I would be appreciate very much if you share this solution. Sorry for my bad english.

                  J 1 Reply Last reply
                  0
                  • D Dudi Avramov

                    You can disable the buttons of the opened window by setting some values in the registry Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer. Read Disable Windows NT alt-ctrl-del dialog button

                    V Offline
                    V Offline
                    Valera241176
                    wrote on last edited by
                    #9

                    Thank you a lot for such an information! I'll try it out.

                    1 Reply Last reply
                    0
                    • V Valera241176

                      to Joan Murt: Is it just the cosiderations about "is is good or bad to block ctrl+alt+del" or you have some original solution? I would be appreciate very much if you share this solution. Sorry for my bad english.

                      J Offline
                      J Offline
                      Joan M
                      wrote on last edited by
                      #10

                      That was only a consideration, but in order to keep the security in the OS, the only way to do it in NT based OSes is using a GINA.DLL... Is needed to do it in that way: that cannot be reached from any program in order to prevent malintetioned users to capture passwords and so on...) At least this is what I know... Hope this helps.

                      https://www.robotecnik.com freelance robots, PLC and CNC programmer.

                      V 1 Reply Last reply
                      0
                      • J Joan M

                        That was only a consideration, but in order to keep the security in the OS, the only way to do it in NT based OSes is using a GINA.DLL... Is needed to do it in that way: that cannot be reached from any program in order to prevent malintetioned users to capture passwords and so on...) At least this is what I know... Hope this helps.

                        V Offline
                        V Offline
                        Valera241176
                        wrote on last edited by
                        #11

                        InMSDN I've found the descriptions of the following bugs, which may occur when using third-party GINA.dll: System Policies May Not Work with Third-Party GINA DLLs ID: Q163215 · Loss of Desktop After Logon When Using a Filter Gina.dll ID: Q189290 · Access Violation in Winlogon with Third-Party Gina.dll ID: Q180854 MSDN tells to download ne SP(NT 4.0 Service Pack (4.0)). Do you know about them, and how to take care with them better (except prompting user to download this SP)? Any suggestions?

                        J 1 Reply Last reply
                        0
                        • V Valera241176

                          InMSDN I've found the descriptions of the following bugs, which may occur when using third-party GINA.dll: System Policies May Not Work with Third-Party GINA DLLs ID: Q163215 · Loss of Desktop After Logon When Using a Filter Gina.dll ID: Q189290 · Access Violation in Winlogon with Third-Party Gina.dll ID: Q180854 MSDN tells to download ne SP(NT 4.0 Service Pack (4.0)). Do you know about them, and how to take care with them better (except prompting user to download this SP)? Any suggestions?

                          J Offline
                          J Offline
                          Joan M
                          wrote on last edited by
                          #12

                          Sorry, but as I make numerical control machines, I can choose the OS that the industrial PC has installed, then I use Win2k and I don't have this problem. I don't know nothing about that, but if we think about the program requirements... you can require the SP4 to be installed in order to let your app. to run. If you are writting a legal app. this shouldn't be a problem, and I'm not sure about that, but in your installation you should be able to check it and you should be able to launch the sp4 installation (I think it's legal to redistribute the sp's (I'm not sure about this last sentence)). Hope this helps.

                          https://www.robotecnik.com freelance robots, PLC and CNC programmer.

                          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