禁用Windows密钥快捷方式 [英] Disable windows key-shortcuts

查看:73
本文介绍了禁用Windows密钥快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好,CP,我需要阻止像CTRL + ALT + DEL,或者WINKEY + R等许多其他快捷方式,有什么方法可以实现这个吗?

Good afternoon CP, I''m in need to block key-shortcuts like CTRL+ALT+DEL, or WINKEY+R and many others, is there any way I can acomplish this?

推荐答案

Yepp,可以使用所谓的低级键盘钩子。



钩子必须实现为DLL,并且它将监视用于切换任务的任何常用键序列。每当它检测到其中一个序列时,它将忽略输入而不将其传递给钩链。 Paul DiLascia 写了一篇文章,在2002年9月的MSDN杂志中解决了这个问题。



看看: http:// msdn.microsoft.com/en-us/magazine/cc188951.aspx [ ^ ]
Yepp, it is possible by using so called low-level keyboard hook.

The hook must be implemented as a DLL, and it will watch for any of the common key sequences used to switch tasks. Whenever it detects one of those sequences, it will ignore the input by not passing it down the hook chain. Paul DiLascia wrote an article that addresses this very question in the September 2002 edition of MSDN Magazine.

Take a look: http://msdn.microsoft.com/en-us/magazine/cc188951.aspx[^]


试用:



http://www.autohotkey.com/docs/misc/Override.htm [ ^ ]



http://stackoverflow.com/questions/ 11352343 / how-can-i-disable-specific-windows-hotkeys-from-inside-a-software-using-c [ ^ ]
Try out:

http://www.autohotkey.com/docs/misc/Override.htm[^]

http://stackoverflow.com/questions/11352343/how-can-i-disable-specific-windows-hotkeys-from-inside-a-software-using-c[^]


低级Windows API来自C#的钩子可以阻止不必要的击键 [ ^ ]



我发现了这一点,但我对我的情况一点都不感兴趣我应该执行代码,我添加了Keyboard.cs,但如何从我的表单中执行它以测试它是否有效?
Low-level Windows API hooks from C# to stop unwanted keystrokes[^]

I found this but I''m a bit clueless of how I''m supposed to execute the code, I added the Keyboard.cs but how do I execute it from my form to test if it works?


这篇关于禁用Windows密钥快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆