CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: disable windows, ctrl, alt, del key

    Anything after XP that blocks registry access.
    Code:
    There is a registry hack to enable or disable Windows NT TaskManager. The same registry hack applies to Windows 2000 and Windows XP.
    
    Hive: HKEY_CURRENT_USER
    Key: Software\Microsoft\Windows\CurrentVersion\Policies\System
    Name: DisableTaskMgr
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  2. #17
    Join Date
    Nov 2010
    Posts
    3

    Re: disable windows, ctrl, alt, del key

    I haven't tested it but this site indicates that it also works for Vista and Windows 7:

    http://www.vistax64.com/tutorials/10...e-disable.html

  3. #18
    Join Date
    Nov 2010
    Posts
    30

    Re: disable windows, ctrl, alt, del key

    How about just using windows steady state, create a new user for windows and lock it up (including ctrl alt del)? It's free and too easy to use!

  4. #19
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: disable windows, ctrl, alt, del key

    The original problem was for a KIOSK. The way to eliminate the CAD keys is to eliminated the whole keyboard. Usually, a KIOSK is Browser Based, and arrow keys plus enter plus delete are all that are needed!

    Now, with touch-screen available, now users can do just about anything with no keyboard
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #20
    Join Date
    Jan 2011
    Posts
    3

    Talking Re: disable windows, ctrl, alt, del key

    I've managed to do that thing regarding disabling the task manager itself,
    by killing the process

    Code:
    Public Shared Function killCmd(ByVal procName As String, Optional ByVal all As Boolean = True) As Boolean
            Dim val As Boolean = False
            For Each procInstance As Process In Process.GetProcesses
                If procInstance.ProcessName.ToLower = procName.ToLower Then
                    procInstance.Kill()
                    val = True
                    If Not all Then Exit For
                End If
            Next
            Return val
        End Function
    ' now create a timer and put this codes
    Private Sub cmd_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd.Tick
            killCmd("taskmgr")
        End Sub

    Im just bothered that's why I register and reply to this thread.
    Hope I've helped you guys in some way ^_^

    TIP: Kill the main function itself.

  6. #21
    Join Date
    Jun 2011
    Posts
    1

    Re: disable windows, ctrl, alt, del key

    hi everyone, this is actually my first post in this forum.
    Actually, i made an info-kiosk app a few years back and the post caught my attention to see other people's suggestions.. I've read through the post and everyone have contributed a significant amount of information. I just want to conclude and suggest a Task Manager trick.

    As it is already mentioned, info kiosks use special keyboards. These keyboards have no special keys like ctrl, alt, etc. I made mine for a touch screen, thus, i used an on screen keyboard which i made.

    The solution given by HanneSThEGreaT to handle (block) key combinations like Alt Tab, Ctrl Esc, the Windows keys is on the correct path. Yes, you could alter (rewrite) the gina.dll but it is time-consuming and not advisable from my point. Yes, you can disable Windows Task Manager from the registry, and the links provided address this issue.
    http://www.windowsnetworking.com/kba...XPHomePro.html
    http://www.vistax64.com/tutorials/10...e-disable.html


    Task Manager Trick:
    Ok, you cannot disable Ctrl+Alt+Del, but you can just alter its effect!

    Let's give it a try with an example.
    1) Locate your calc.exe (windows calculator) and taskmgr.exe (windows task manager), usually in C:\Windows\System32
    2) Copy both of these files to another location, for example your desktop and:
    Rename taskmgr.exe -> taskmgr_.exe
    Rename calc.exe -> taskmgr.exe
    Thus your calc.exe is now called taskmgr.exe
    3) Drag and drop your NEW taskmgr.exe (which is actually the calculator) into the C:\Windows\System32 directory, and when it asks you to replace it say yes.
    4) Actually you are done, if you hit Ctrl+Alt+Del the calculator will pop-up.

    Having said all that, i will give you some food for thought.. you could write your own tiny app, a not visible form maybe, which ends instantly after loading and replace taskmgr.exe with that. The user will see that nothing actually happens when Ctrl+Alt+Del is pressed. If you want to be able to access Windows Task Manager write an app which asks for password in order to run the taskmgr.exe (and if no keys pressed for 5 seconds it ends)

  7. #22
    Join Date
    Jun 2011
    Posts
    4

    Re: disable windows, ctrl, alt, del key

    This works like a dream in Windows 7 Ultimate x64:

    Code:
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
    "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,1d,e0,00,00,1d,00,00,00,00,00
    It disables both Ctrl buttons - restart required though...
    Hope it helps - you can do the same with Alt etc...

  8. #23
    Join Date
    Jan 2012
    Posts
    2

    Re: disable windows, ctrl, alt, del key

    Hey, I don't even know if this helps or not, and I am a begginer but I had long hours of thought for a simple program I was building for the school with a mark, and I figured out that in ANY OS (at least from XP on) taskmgr.exe shows up in the Task Manager, so, you do a kind of code like this:
    For Each poc As process In Processes.GetProcessByName("taskmgr")
    poc.Kill()
    Next
    Sorry if i am not right with this but it might help

  9. #24
    Join Date
    Jan 2012
    Posts
    2

    Re: disable windows, ctrl, alt, del key

    Quote Originally Posted by tute.95 View Post
    Hey, I don't even know if this helps or not, and I am a begginer but I had long hours of thought for a simple program I was building for the school with a mark, and I figured out that in ANY OS (at least from XP on) taskmgr.exe shows up in the Task Manager, so, you do a kind of code like this:
    For Each poc As process In Processes.GetProcessByName("taskmgr")
    poc.Kill()
    Next
    Sorry if i am not right with this but it might help
    Forgotten to add that you might put it under Mouse Move action so that it kills the process every time you may also under any action even a timer as I did...

  10. #25
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: disable windows, ctrl, alt, del key

    I'm not sure how that is supposed to address the issue at hand.

    Also this is an old thread as in over 3 1/2 years old so the proposed answer would do the questioner no good even if it were the correct answer.
    Always use [code][/code] tags when posting code.

  11. #26
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: disable windows, ctrl, alt, del key

    Not according to the AUP.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  12. #27
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: disable windows, ctrl, alt, del key

    This thread keeps being reincarnated. I will close it now.

    Any future posts must be in Reference to this thread please.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured