简体   繁体   中英

Can a winrt application run as a windows service, on win10/win2012?

If my winrt applications is a background process, non visual, can it run as a windows service?

It needs to either auto start (by OS, like a service), or a regular windows service needs to be able to start it. (Or other way that gives same result.)

If my winrt applications is a background process, non visual, can it run as a windows service?

You can't run the WinRT application as a windows service. The WinRT app runs in a App Container with a low integrity, it also has its own app lifecycle .

Background tasks are lightweight. Keeping background execution to a minimum ensures the best user experience with foreground apps and battery life.

Background task resource constraints 在此处输入图片说明

根据您想要提供的服务类型,您实际上可以在Windows 10上使用WinRT。查看此构建讨论,并跳到有关App Services的部分: https : //channel9.msdn.com/Events/Build/2015/ 3-765

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