简体   繁体   中英

How to show bubble notification on status change (Start or stop) of windows service in windows10 in C#

当我的Windows服务在Windows-10中启动或停止时,我想在系统托盘中显示气泡通知,但是在Windows Vista之后,没有提供Windows服务与GUI或桌面交互的规定,因此我该如何实现C#??

Because a windows services cannot interact with the user-desktop, you should create a separate application (with autostart), that implements the bubble-notifications you like. I would create a simple WCF-Service in the Windows-Service so that your GUI can control the service an receive notifications.

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