在 Windows Mobile 6 上按下按钮
我正在为 Windows Mobile 智能手机制作一个应用程序,我想知道,使用 C# 和 Windows Mobile 6 SDK,如何制作一个即使在最小化后也能获取输入事件的窗口?是否可以?我确信是的。
请告诉我, 谢谢
I am making an application for a windows mobile smartphone, and I would like to know, using C# and the Windows Mobile 6 SDK, how can I make a window that can get input events even after minimized? Is it possible? I'm sure it is.
Please let me know,
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,这是不可能的,除非您直接与 OEM 合作(在这种情况下您有机会在某种程度上修改系统本身)。因此,如果您正在寻找通用方法,您将找不到它。
但是,如果您的目标是某些特定的 WM6 设备,您可以尝试查看是否:
a) Windows 挂钩仍然启用并且未被某些系统服务使用(请注意,Windows 挂钩在移动版本上被正式禁用,甚至在移动版本上也被正式禁用) WM5,但并非所有手机都是如此)
b)OEM 提供了自己的专有通知系统(有时他们会这样做,这很难捕捉到,如果您不认识已经了解详细信息的人,那么这是很难做到)。
总而言之,您无法编写一个适用于所有 WM6 设备的解决方案,并且存在安全问题(例如窃取密码等),因此该决定是合理的。
Actually, this is not possible, unless you are working directly with OEM (in which case you have an opportunity to modify the system itself up to some extent). So, if you are looking for a general approach, you will not find it.
However, if you are targeting some specific WM6 device, you can try to see if:
a) Windows hooks are still enabled and not used by some system service (note that Windows hooks are officially disabled on mobile editions, they are officially disabled even for WM5, but that's not really the case for all the phones)
b) OEM has provided its own proprietary notification system (sometimes they do, this is quite tricky to catch, and if you do not know someone who already know the details, it is very difficult to do it).
To sum up, you can not write a solution that will work on every WM6 device, and there are security issues (e.g. stealing passwords, etc) that make this decision reasonable.