开发交互式Windows服务 [英] Develop an interative windows service
问题描述
我们如何在C#中开发交互式Windows服务?
How can we develop an interactive windows service in C#?
我需要开发一个Windows服务,当在系统中下载文件时,该服务会显示一个弹出窗口.
I need to develop a windows service that shows a popup window when a file is downloaded in the system.
谢谢
推荐答案
Windows服务可以运行,而与桌面无关.您可以创建Windows应用程序并将其添加到Windows启动时在后台运行,但是从概念上讲Windows服务是另一回事.
A windows service runs irrespective of Desktop. You may create a windows application and add it to run in the background when windows starts, but conceptually windows service is a different thing.
此外,还有一种使用桌面GUI从Windows服务进行通信的黑客方式(注册表编辑).这是一个很好的解决方案... http://www.codeproject.com/KB/install/cswindowsservicedesktop.aspx
Also, there is a hack way(a registry edit) of using desktop GUI to communicate from windows service. Here is a good solution... http://www.codeproject.com/KB/install/cswindowsservicedesktop.aspx
谢谢
Anirban
Thanks
Anirban
这篇关于开发交互式Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!