开发者

Does a system tray app only work when a user is logged in?

开发者 https://www.devze.com 2023-03-24 22:41 出处:网络
开发者_StackOverflow中文版My system tray application only work when any user is logged in. I want that it should run all the time irrespective to user login. should i change the approach.If you want a
开发者_StackOverflow中文版

My system tray application only work when any user is logged in. I want that it should run all the time irrespective to user login. should i change the approach.


If you want an application to run without requiring a user to be logged in, use a Windows Service (assuming your question refers to Windows).


Right approach for such application is to have a system service with a business logic and a "tray" application used for notifications and other user interaction. The reason is that system service can't talk to the user (without certain tricks which are limited and not always suitable).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号