wxpython 中的 Kiosk 模式?
有没有办法在 Windows (98 - 7) 下的 wxpython 中创建“信息亭模式”,其中应用程序禁止您使用 Windows 键、alt-tab、alt-f4 和 ctrl+alt+delete 突破应用程序?
Is there a way to create a 'kiosk mode' in wxpython under Windows (98 - 7) where the application disables you from breaking out of the app using Windows keys, alt-tab, alt-f4, and ctrl+alt+delete?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果应用程序能够做到这一点,它将对计算机发起严重的拒绝服务攻击。
特别是 Ctrl+Alt+Delete 是安全注意序列< /a>. Microsoft 竭尽全力确保当用户按下这些键时,他们会切换到安全桌面,这样他们就可以确信登录框是真实 Windows 登录而不是伪造的。
您需要查看的不是应用程序可以调用的函数,而是允许管理员配置计算机以进行有限使用的系统管理选项。这些都是存在的,但这更多的是超级用户的问题,而不是 Stack Overflow 的问题。
这应该可以帮助你开始
http://msdn.microsoft.com/en-us /library/aa372139(VS.85).aspx
If an application could do that it would make a great denial-of-service attack on the machine.
In particular Ctrl+Alt+Delete is the Secure Attention Sequence. Microsoft goes to great lengths to insure that when the user hits those keys, they switch to a secure desktop that they can be confident that the logon box is the real Windows logon and not a counterfeit.
What you need to look at isn't functions that your application can call, but System Administration options that allow an Administrator to configure a machine for limited use. These exist, but it's more a question for Super User than for Stack Overflow.
This should get you started
http://msdn.microsoft.com/en-us/library/aa372139(VS.85).aspx
仅靠 wxPython 是无法做到这一点的。
您需要使用 C/C++ 或等效的 ctypes 进行低级键盘挂钩,对于
Windows 键、alt-tab、alt-f4,
但 Ctrl-Alt-Del,我不认为对于 Windows XP 及更高版本如此。
wxPython alone cannot be done with that.
You need to do Low Level Keyboard Hook with C/C++ or with equivalent ctypes, for
Windows keys, alt-tab, alt-f4,
but Ctrl-Alt-Del, I don't think so for Windows XP and above.