Announcement

Collapse
No announcement yet.

Coding a touchscreen password program can ctrl-alt-del be disabled?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Coding a touchscreen password program can ctrl-alt-del be disabled?

    Question for all the coding monkeys and non monkeys.

    I am trying to code a touch screen password program in VB.net that is basically a rip off of StevieG's audio recording password software, accept I did not really need the recording feature, and I wanted to code so it gave me a reason to.

    I have the program working great with one problem, I have been searching for a way to stop the users ability to get around the applications having focus by killing it in task manager. With just a touch screen interface this is not a problem I have the window set to no border, maximized and topmost. but as soon as a smart or curious person finds my computer in the trunk and plugs in a keyboard they will eventually try alt-crtl-del and end the task/process.

    From my googleing attempts the only info I have garnered is that is not possible to with code in XP, is this true? The only way to do it is by replacing the GINA.dll file with a modified version disabling the task manager or modifying the users permissions to not allow the user to do it. Neither of these solutions work for me as after my app closing I still want it to be business as usual.

    Any ideas?

    here is a screen shot of the app. (the picture of my stock radio where the radio is supposed to be is ment to deter would-be thieves )
    Attached Files
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  • #2
    No, you can't do it easily with code. The typical way to block keys is with a global keyboard hook, however, these are processed after ctrl+alt+del. The only reliable way I found is to hack the registry and remap the keys.

    http://www.northcode.com/resources/kiosk/kiosk.html
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

    Comment


    • #3
      the way I would look at it.. if you got a touch screen, then chances are your keyboard would be hidden anyway.. and how many people would think about pressing these keys anyway ?

      CdR
      Follow me on Twitter

      http://www.FreeICE.co.uk

      Comment


      • #4
        Good point Cdr .... I disconnect my USB Keyboard when not in use and put in the back under my seat.

        Comment


        • #5
          Originally posted by god_of_cpu
          No, you can't do it easily with code. The typical way to block keys is with a global keyboard hook, however, these are processed after ctrl+alt+del. The only reliable way I found is to hack the registry and remap the keys.

          http://www.northcode.com/resources/kiosk/kiosk.html
          keep in mind that i know nothing about programming, but here is my $0.02:

          this similar to what I was thinking, except you might just want to intercept ctrl and alt keys.. then alt-tab, ctrl-alt-del, and ctrl-shift-esc won't work.
          Dr. Ron Paul for President 2008

          Hope for America - http://www.ronpaul2008.com

          Who is Ron Paul? - Why do we need Ron Paul?

          __________________
          CarPC Newbs Start Here: All your questions answered, as if by E.S.P.

          Comment


          • #6
            I think that is a good idea too.. can't you look out for crt-alt key combo, and as soon as they are pressed you display a msgbox("no you don't!") ?

            Originally posted by tj!2k4
            keep in mind that i know nothing about programming, but here is my $0.02:

            this similar to what I was thinking, except you might just want to intercept ctrl and alt keys.. then alt-tab, ctrl-alt-del, and ctrl-shift-esc won't work.
            2002 Honda CR-V
            Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
            Spent so far: $1105.90


            Download the NEXUS Skin for Centrafuse
            ...or even Listen to my music

            Comment


            • #7
              Thanks for all of the replies guys!

              The way I understand it the crtrl and alt keys are processed olny when another key (such as del) is pressed. The computer looks to see if the ctrl or alt where down @ at the time the keypress of del happend. So like God_of_Cpu and CDrSkull said the above wont work

              I did find way to do it in 9x windows appearently it was quite easy to there.

              I had hoped there was a "known loophole", but had a feeling there wasnt.

              Thanks again guys.
              My Install

              Software:
              CFiG v1
              iGuidance Plugin for CF

              CarShell
              Working shell for a CarPC

              StopWatch
              StopWatch plugin remade for centrafuse RC1

              Comment


              • #8
                um, i havent done it in a while, but i recall there is a way to register your app with windows as a screen saver, then when the task manager does pop up, your program is not listed...cant remember the code though.....this might not work in XP.....that mighta been in the days of 98
                PC Components:
                Lilliput; XPC/FLEX mobo; 1.7 ghz P4 Mobile;512 DDR; 160 gb HDD; opus 150; slot usb dvd-rw
                My work log

                Comment


                • #9
                  Originally posted by Peoples
                  um, i havent done it in a while, but i recall there is a way to register your app with windows as a screen saver, then when the task manager does pop up, your program is not listed...cant remember the code though.....this might not work in XP.....that mighta been in the days of 98
                  that is exactly the way to do it for win 9x, unfortunitaly they ended it for win 2000/xp
                  My Install

                  Software:
                  CFiG v1
                  iGuidance Plugin for CF

                  CarShell
                  Working shell for a CarPC

                  StopWatch
                  StopWatch plugin remade for centrafuse RC1

                  Comment


                  • #10
                    heres a hook example like god_of_cpu suggested http://planetsourcecode.com/vb/scrip...1052&lngWId=10
                    PC Components:
                    Lilliput; XPC/FLEX mobo; 1.7 ghz P4 Mobile;512 DDR; 160 gb HDD; opus 150; slot usb dvd-rw
                    My work log

                    Comment


                    • #11
                      There is a way to hide the process in win xp, but I don't remember off hand how to do it. As long as the form is not shown and taskbar and you do that little hack to hide the process, they shouldnt be able to close it.
                      Just because I haven't posted alot doesn't mean I haven't searched and know what I am talking about!

                      Progress Meter [███████████] 2%

                      General layout design is done in my head. Just need the money to buy the stuff and start building.

                      Comment


                      • #12
                        i think you can register you app as a windows service...and that will disable people from killing it
                        PC Components:
                        Lilliput; XPC/FLEX mobo; 1.7 ghz P4 Mobile;512 DDR; 160 gb HDD; opus 150; slot usb dvd-rw
                        My work log

                        Comment


                        • #13
                          rename task manager :-) It won't allow anyone to end a task then.

                          Comment


                          • #14
                            You could try hiding the taskmanager window. See: http://www.programmershelp.co.uk/showcode.php?e=286

                            It doesn't seem to remove the trayicon in WinXP, but it does mean you can't restore the window to a visible state.

                            I haven't tried it yet but perhaps this will help you with your program:
                            http://www.codeproject.com/win32/AntonioWinLock.asp
                            S.O.P.H.I.E.
                            www.VBSide.com/Sophie

                            Comment


                            • #15
                              Also take a look at:

                              http://www.andreavb.com/forum/viewto...02&page=0#3012

                              Comment

                              Working...
                              X