Block Control+Alt+Delete

后端 未结 14 716
渐次进展
渐次进展 2020-12-03 08:35

I am doing an Online Quiz project in C#. The test client is a Windows Desktop Application running on Windows XP. I need to block the control+alt+d

相关标签:
14条回答
  • 2020-12-03 09:34

    As other people have mentioned it's very hard to block Ctrl-Alt-Del, as it's a fundamental part of Windows security.

    However you can block what can be done after Ctrl-Alt-Del has been pushed by adding the following registry keys.

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System

    • DisableTaskMgr
    • DisableChangePassword
    • DisableLockWorkstation

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    • NoLogoff

    If you do this then when you push Ctrl-Alt-Del you will get a dialogue like the following (under XP):

    alt text

    It's not fool-proof, but it stops the user from doing some basic things.

    Update: Just realised that this also blocks Ctrl-Shift-Esc, which I didn't realise before.

    0 讨论(0)
  • Alternate solution:

    Make the app so you never need to use the alt or ctrl key.

    Then, take out the Ctrl (or alt) key and put paper on the contacts.

    Tada!

    (just use another keyboard for maintenance)

    0 讨论(0)
提交回复
热议问题