简体   繁体   中英

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. 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.

I hope I was clear and everybody will understand the question :-). Feel free to ask me more specific questions.

Cordially 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.

Similarly, the user close gesture cannot be blocked.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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