且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何禁用CTRL + ALT + DEL键

更新时间:2023-12-02 23:54:04

要为Walt添加更多答案:肯定是不可能的。当您拦截任何键盘事件时,它们将被分派到您的应用程序窗口或系统挂钩所有类似但不是Ctrl + Alt + Del。这是系统工作的原因,原因很明显。



现在,该怎么办?

您需要自助服务终端模式。在这里阅读:

使用C#以Kiosk模式运行网站 [ ^ ],

c#program ctrl-alt-del screen windows 7 [ ^ ]。



-SA
To add more to the answer by Walt: it is certainly impossible. When you intercept any keyboard events, they are dispatched to your application window or system hook everything similar but not Ctrl+Alt+Del. This is how system work, for obvious reasons.

Now, what to do?
You need kiosk mode. Read about it here:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].

—SA


CTRL + ALT + DEL是一个低级Windows功能,所以我不知道有什么好的方法可以禁用它,除了更换部分Windows系统。



为什么你需要改变Windows的工作方式吗?
CTRL+ALT+DEL is a low level Windows function, so I don't know of any good way to disable it, other than replacing part of the Windows system.

Why do you need to change the way Windows works?


你不能从你的应用程序代码中禁用Ctrl-Alt-Del,即使是低级别的键盘钩子也是如此。原因是因为CAD是Windows安全系统的一部分,而不是任何用户模式应用程序的一部分。



有办法实现,但是,像Walt所说,您必须替换某些Windows库才能执行此操作。这不是任何用户模式代码都可以做到的。



不,我会告诉你如何做到这一点,因为从来没有禁用组合键的一个很好的理由。
You cannot disable Ctrl-Alt-Del from your application code, not even with a low-level keyboard hook. The reason is because C-A-D is part of Windows security system, NOT part of any user-mode application.

There are ways of doing it, but, like Walt said, you have to replace certain Windows libraries to do it. This is not something any user-mode code is going to be able to do.

No, I'm going to tell you how to do it because there is never a good reason to disable the key combination.