Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
知道服务不能/不应该与桌面应用程序交互,我如何才能让服务成为桌面应用程序的看门狗。
还是仅在只有一个用户的情况下才有效?
服务不能有 UI,但它们可以运行可执行文件。只是对于 windows vista、windows 7 及更高版本,服务需要找出在哪个用户/会话下运行可执行文件。
这是一篇博客文章,解释了如何做到这一点。1