有人知道ShellHook消息HSHELL_RUDEAPPACTIVATED是什么意思吗? [英] Does anybody know what means ShellHook message HSHELL_RUDEAPPACTIVATED?
问题描述
我正在编写建立外壳钩子以获取外壳事件的应用程序(如果重要的话,我正在使用C#). 我正在使用以下示例: http://msbob.spaces.live.com /blog/cns!DAFD19BC5D669D8F!132.entry
I am writing application which establishes shell hooks to get shell events (I am using C# if it matters). I am using this example: http://msbob.spaces.live.com/blog/cns!DAFD19BC5D669D8F!132.entry
挂钩工作正常,但是我没有收到我感兴趣的消息:HSHELL_WINDOWACTIVATED(所有其他与窗口有关的事件都正常工作). 相反,我收到的代码为32772的消息应该为HSHELL_RUDEAPPACTIVATED(有些Google搜索帮助了).
Hook is working fine but I do not receive message on which I am interested: HSHELL_WINDOWACTIVATED (all other window-related events work well). Instead I am receiving message with code 32772 which should be HSHELL_RUDEAPPACTIVATED (some googling helped).
但是我不明白为什么我根本没有收到HSHELL_WINDOWACTIVATED,以及此HSHELL_RUDEAPPACTIVATED消息的含义. MSDN没有任何提及. 有人可以向我解释吗?
But I can't understand why I am not receiving HSHELL_WINDOWACTIVATED at all and what this HSHELL_RUDEAPPACTIVATED message means. MSDN does not have any mention of it. Can anybody explain it to me?
推荐答案
HSHELL_RUDEAPPACTIVATED
是32772,它只是设置了高位的HSHELL_WINDOWACTIVATED
.我可以从各种网站上搜集到的信息似乎是,当激活全屏应用程序时,Windows会发送此消息.很难确定.
HSHELL_RUDEAPPACTIVATED
is 32772, which is just HSHELL_WINDOWACTIVATED
with the high bit set. From what little I can glean on various Web sites, it appears that Windows sends this message when a full screen app is activated. Kind of hard to tell for sure.
您是否尝试过将邮件与"HSHELL_WINDOWACTIVATED"一样对待?
Have you tried treating that message the same as `HSHELL_WINDOWACTIVATED'?
这篇关于有人知道ShellHook消息HSHELL_RUDEAPPACTIVATED是什么意思吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!