禁用 Ctrl-Alt-Del 并关闭信息亭
我为客户完成了一个应用程序。聊了一会后,他希望我再做一个应用程序或为他们的信息亭推荐一个应用程序。
客户想要一种防止计算机关闭的方法。他们喜欢禁用 Ctrl+Alt+Delete (这样进程就无法被杀死),Alt+F4 关闭浏览器,没有 Windows 按钮来弹出开始菜单供用户单击或使用键盘关闭。显然应该有一种方法可以解锁它,
我告诉他们我会调查它,但他们真的不需要它。
他们使用的是 Windows 7。是否有我可以使用的 WinAPI 调用或现有的应用程序或库来执行此操作?
I finished an app for a client. After talking for a bit he would like me to do an additional app or recommend one for their kiosk.
The client would like a way to prevent the computer from shutting down. They like to disable Ctrl+Alt+Delete (also so processes cant be killed), Alt+F4 to close their browser and no windows button to make the start menu pop up for the user to click or use keyboard to shutdown. Obviously there should be a way to unlock it
I told them i'll look into it but they really don't need it.
They are using Windows 7. Is there a WinAPI call I can use or an already existing app or a lib to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 Windows 2000 开始,有一个注册表二进制密钥允许您在驱动程序级别之上重新映射密钥:
幸运的是,还有一个 GUI 应用程序可以让您轻松配置它,称为 SharpKeys(没有隶属关系,只是一个快乐的用户)。重新映射非常灵活,到目前为止,我已经成功地重新映射了每个标准键(包括 Ctrl、Delete、F4 等) ,甚至某些键盘上的“多媒体”键。
该应用程序只是将设置写入注册表,因此不需要一直运行 - 一旦您找到您喜欢的布局,您只需通过 Regedit 导出/导入注册表项即可,无需特殊工具。
我建议将所有“危险”键重新映射到无辜的键 - 例如将 Ctrl、Delete 和 F4 映射到 Shift 。
注意:这是一个系统范围的设置,因此如果您需要在该系统中按 Ctrl+Alt+Delete,您那就不幸了(你必须再次编辑注册表项)。此外,系统启动后映射只读一次,因此您需要重新启动才能应用更改。
Since Windows 2000, there's a Registry binary key that allows you to remap keys just above the driver level:
Fortunately, there's also a GUI app which allows you to configure it easily, called SharpKeys (no affiliation, just a happy user). The remap is quite flexible, so far I've managed to remap every standard key (inc. Ctrl, Delete, F4, etc.), even the "multimedia" keys that are on some keyboards.
The app just writes the settings into Registry, so it need not be running all the time - and once you've found a layout that you like, you can just export/import the Registry key through Regedit, no special tools required.
I'd suggest to remap all the "dangerous" keys to something innocent - e.g. map Ctrl, Delete, and F4 to Shift.
CAVEAT: this is a system-wide setting, so if you'd ever need to press Ctrl+Alt+Delete in that system, you'd be out of luck (you'd have to edit the registry key again). Also, the mapping is read only once, after system boots, so you need to reboot to apply the changes.
可能是更好的方法,但 AutoHotKey 可以在 Windows 中为您禁用或重新映射键。 http://www.autohotkey.com/docs/misc/Remap.htm 和 http://www.autohotkey.com/docs/misc/Override.htm< /a>.
无论如何,这比自己编辑注册表要安全一些。我还没有尝试禁用 Ctrl+Alt+Del,但它适用于大写锁定和我尝试过的其他几个键。
Might be a better way, but AutoHotKey can disable or remap keys for you in Windows. http://www.autohotkey.com/docs/misc/Remap.htm and http://www.autohotkey.com/docs/misc/Override.htm.
It's a little safer than editing the registry yourself anyway. I haven't tried disabling Ctrl+Alt+Del, but it works for capslock and a couple other keys I've tried.