简体   繁体   English

如何禁用挂起|| 结束|| Windows 8 Pro上Metro Metro App的终止事件

[英]How to disable Suspending || Closing || Terminating event for my Metro Style App on Windows 8 Pro

I'm a french developer and I need to develop an Metro Style app for Windows 8 Pro who is always launched. 我是一名法国开发人员,我需要为始终启动的Windows 8 Pro开发Metro Metro应用。 I wanted to know how can I disable the close event of my app. 我想知道如何禁用应用程序的关闭事件。 My app need to be in front all the time and the user couldn't quit the app. 我的应用程序必须一直处于领先地位,并且用户无法退出该应用程序。

I thought I could disable all the shortcut with the GPO but the close gesture (drag the app from the top to the bottom) need to me disabled too. 我以为可以用GPO禁用所有快捷方式,但是关闭手势(将应用程序从顶部拖动到底部)也需要禁用。

I hope I was clear and everybody will understand the question :-). 我希望我很清楚,每个人都会明白这个问题:-)。 Feel free to ask me more specific questions. 随时问我更多具体问题。

Cordially Renaud. 热诚的Renaud。

The short answer is: You can't. 简短的答案是:您不能。

The operating system and the user control the lifetime of Metro Style apps, you can't block the user from switching away from your app and once your app is no longer in the foreground, the application is suspended and the system can terminate the application at any moment. 操作系统和用户控制Metro Style应用程序的生命周期,您不能阻止用户切换到您的应用程序,并且一旦您的应用程序不再处于前台,应用程序将被挂起,并且系统可以在以下位置终止该应用程序任何时候。

Similarly, the user close gesture cannot be blocked. 同样,用户的关闭手势也不能被阻止。

在Windows 8.1中,您可能会找到所需的Kiosk Mode

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM