运行我的窗口应用程序。如果用户按ctrl + alt + del我需要禁用这些按钮..是否有任何方法
答案 0 :(得分:10)
我当然希望不会 - Ctrl - Alt - Del 组合键被操作系统拦截,永远不会传递给应用程序。这是一个安全措施:如果用户按下 Ctrl - Alt - Del ,那么保证是什么用户将会看到登录屏幕/任务管理器(取决于您拥有的Windows版本),而不是某些试图窃取其密码的应用程序(我并不是说这是您的意图,但这样的应用程序是 Ctrl < / kbd> - Alt - Del 旨在防止)。
答案 1 :(得分:1)
如果我没记错的话,CTRL-ALT-DEL是唯一无法覆盖的组合键。
答案 2 :(得分:1)
您无法禁用它们,但也许您想要禁用任务管理器,或者锁定。
Disable Lock Workstation button:
Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Windows\CurrentVersion\Policies\System
Name: DisableLockWorkstation
Type: REG_DWORD
Value: 1 disable
Disable Task Manager button:
Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Windows\CurrentVersion\Policies\System
Name: DisableTaskMgr
Type: REG_DWORD
Value: 1 disable
你也可以考虑
Disable Change Password button:
Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Windows\CurrentVersion\Policies\System
Name: DisableChangePassword
Type: REG_DWORD
Value: 1 disable
Disable Logoff button:
Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Windows\CurrentVersion\Policies\Explorer Note: change from System to Explorer
Name: NoLogoff
Type: REG_DWORD
Value: 1 disable
答案 3 :(得分:0)
我有同样的问题。我不得不让用户有权访问Ctrl+Alt+Del
功能。我找到了解决方法来禁用它们。
我更改了注册表中的键盘映射。由于删除Ctrl-Alt-Del
功能可能很危险,因此我只需使用Alt
键切换ScrollLock
密钥即可。
为此,您需要添加以下注册表项(有关详细说明,请参阅此website,如果您想通过另一个键but here a link更改ScrollLock,则可以在任何地方找到键盘扫描代码):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
Key Name: Scancode Map
Type: Binary
Value to enter:
00 00 00 00
00 00 00 00
03 00 00 00 => represent the number of keys you are modifying + 1 (for some reason, mapping to another key is not counting as 1)
00 00 38 00 => Left-Alt key is 38 00 so here we give 00 00 (nothing) to the Left-Alt key. It will disable it.
38 00 46 00 => ScrollLock key is 46 00 so here we give the Left-Alt key functionality to our ScrollLock key. ScrollLock will be Alt key now.
00 00 38 E0 => Right-Alt key is 38 E0 so here we give 00 00 (nothing) to the Right-Alt key. It will disable it.
00 00 00 00 => Terminator
希望它对你们有帮助!您只需在应用程序中注册此密钥,但请注意它会影响整个系统!