从键盘组合打开禁用开始菜单? [英] Disable start menu from opening with keyboard combo?
问题描述
如何防止打开开始菜单使用键盘快捷键/组合(即Windows键和<大骨节病> CTRL 骨节病> + <大骨节病> ESC 骨节病>)?
How do I prevent the start menu from opening by using the keyboard shortcuts / combo (aka windows key and CTRL + ESC) ?
我可以隐藏任务栏,并领取钥匙,但我不知道我该怎么办禁用它们,我需要禁用它,直到用户与系统进行身份验证。
I am able to hide the taskbar, and receive the keys but I don't know how do I disable them, I need to disable it until the user is authenticated with the system.
有没有我可以使用禁用它们或我该怎么办呢?
Is there a policy I can use to disable them or how do I do it ?
推荐答案
这听起来像钩作业
的 http://www.codeproject.com/KB/cs/globalhook.aspx
更新:
从的 MSDN :
A 全局钩子的监视
的所有消息线程在同一桌面上的
调用线程。 A 特定线程的钩的
监视只有
单独的线程的消息。全局钩
步骤可以在相同的桌面
与调用线程的任何申请的上下文
被调用,所以该
过程必须在一个单独的DLL
模块。特定线程挂机
过程称为只能在相关的线程的
上下文。
A global hook monitors messages for all threads in the same desktop as the calling thread. A thread-specific hook monitors messages for only an individual thread. A global hook procedure can be called in the context of any application in the same desktop as the calling thread, so the procedure must be in a separate DLL module. A thread-specific hook procedure is called only in the context of the associated thread.
在其他也就是说,如果你在链接中使用一个全局钩子一样,你可以捕获系统事件,要么处理它们像正常事件或抑制它们。
In other words, if you use a global hook like in the link, you can capture system events and either process them like normal events or suppress them.
另一个更新:这里是另一个的例如这是充分考虑了Windows键和CTRL + ESC创建。
Another Update: Here is another example which was created with the Windows key and CTRL+ESC in mind.
这篇关于从键盘组合打开禁用开始菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!