为什么 Spy++ 看不到发送到 UWP 应用的消息? [英] Why can't Spy++ see messages sent to UWP apps?

查看:32
本文介绍了为什么 Spy++ 看不到发送到 UWP 应用的消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我们都在 本主题,结果表明,虽然 UWP 应用确实具有顶级窗口,但您可以向它们 (*),并且这些确实通过并产生了预期的效果,Spy++ 似乎从未看到这些消息,或者实际上 Windows 本身可能发送的任何其他消息.

While we all got tangled up in this topic, it came to light that, while UWP apps do have top level windows and you can send (sensible) messages to them (*), and these do get through and have the expected effect, Spy++ doesn't ever seem to see those messages, or indeed any others that Windows itself might send.

任何人都可以对此有所了解吗?

Can anyone shed any light on this?

只是为了提供一些背景信息,Spy 可以毫无问题地定位和检查这些窗口(查找工具"工作正常),但消息记录完全静音.我已经测试了设置应用程序、屏幕键盘、日历和计算器,并且在 Spy 中勾选了所有适当的附加窗口"复选框.我还使用 Process Explorer 来检查 Spy 是否在高完整性级别"下运行(因为它大概是提升的),并且确实如此.

Just to provide a bit of background, Spy has no problem locating and inspecting these windows (the 'Finder Tool' works just fine) but message logging is totally mute. I have tested the Settings App, the On Screen Keyboard, Calendar and Calculator, and I did tick all the appropriate 'Additional windows' checkboxes in Spy. I also used Process Explorer to check that Spy runs at 'High Integrity Level' (because it runs elevated, presumably), and it does.

(*) 是的,我知道我们不应该但是,你知道.

(*) Yes, I know we're not supposed to but, well, you know.

推荐答案

嗯,尴尬.您需要使用 64 位版本的 Spy 来监视 64 位应用程序(反之亦然).然后它工作正常,你会得到你所期望的.

Um, embarrassing. You need to use the 64 bit version of Spy to spy on a 64 bit app (and vice-versa). Then it works fine and you get what you expect.

当然,如果 Spy 在您尝试在错误位数的应用中跟踪消息时告诉您,但它没有告诉您,那会很好,所以请注意.

Of course, it would be nice if Spy told you when you try to trace messages in an app of the wrong bitness but it doesn't, so please be warned.

这篇关于为什么 Spy++ 看不到发送到 UWP 应用的消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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