Windows服务启动时如何打开纸盘. [英] How to open the Tray when the windows service is started.

查看:384
本文介绍了Windows服务启动时如何打开纸盘.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动Windows服务时如何打开纸盘,我尝试直接访问纸盘的exe,但是它在系统进程中运行,因此没有向用户显示.请告诉我运行程序Windows服务启动时在托盘上,

How to open the Tray when the windows service is started, I tried directly access the exe of the tray, but its running in the system process so, its not showing to the user .can u please tell me the procedure to run the tray when the windows service is started,

推荐答案

Windows服务不能具有GUI.

如果用户界面相当简单,则可以使用配置文件作为输入和日志文件,或者使用Windows事件日志作为输出.

但是,如果您坚持使用UI,请尝试以下方法:
http://blogs.us .sogeti.com/dmaher/2010/05/providing-a-ui-for-a-windows-service-part-i/ [
Windows services cannot have GUIs.

If the UI is fairly simple, you may be able to get away with using configuration files for input and log files or the Windows Event Log for output.

But if you are stick to UI go and try this :
http://blogs.us.sogeti.com/dmaher/2010/05/providing-a-ui-for-a-windows-service-part-i/[^]


这篇关于Windows服务启动时如何打开纸盘.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆