如何在登录时将GUI作为服务在后台运行? [英] How to bring a GUI running as service in background to front on login?

查看:98
本文介绍了如何在登录时将GUI作为服务在后台运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.NET Windows窗体应用程序在后台运行,作为SYSTEM用户帐户下服务器上的服务。当用户登录服务器时,有什么方法可以查看此应用程序的GUI(将其置于前面)? (无论是以编程方式还是我可以在Windows中执行的操作)


谢谢。

I have a .NET Windows Form application running in the background as a service on a server under the SYSTEM user account. Is there any way for me to view the GUI of this application (bring it to the front) when a user logs in to the server? (either programatically or something I can do in Windows)

Thanks.

推荐答案

我的猜测是添加到Windows启动菜单并加载,但不是我的区域...
My guess would be to add to windows start up menu and load, but not my area so...



我的猜测是添加到Windows启动菜单并加载,但不是我的区域所以...
My guess would be to add to windows start up menu and load, but not my area so...



对。应用程序已在运行(因为它在启动时启动),并且我需要在用户登录时将该GUI(和任务托盘图标,因为它具有该功能)带到活动显示器(控制台会话)。

Right. The application is already running (because it starts at boot), and I need to bring that GUI (and task tray icon, because it has that) to the active display (console session) when a user logs in.


让您的服务侦听特殊消息,然后有一个小程序,当用户登录时将发送该消息。收到消息后,会显示窗口?
Have your service listen for a special message, then have a small program that will be launched when the user logs in that sends ou this message. When the message is received, the window is shown?


这篇关于如何在登录时将GUI作为服务在后台运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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