本文介绍了vb.net和远程桌面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个应用程序,该应用程序可以使用Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)方法检测它是否已经在运行.
但是我有一个安装了Server 2003的客户,该Server 2003还承载远程桌面连接.当这些连接尝试运行该程序时,系统会告知他们该程序已经在运行,尽管自然地他们无法访问该程序.

有没有一种方法可以检测程序是否在会话中运行,而不是在主机上的某个位置运行?

I have developed an application that detects if it is already running using Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName) method.

But I have a customer with it installed on a Server 2003 that also hosts Remote Desktop connections. When these connections try to run the program they are told it is already running though naturally they have no access to it.

Is there a way of detecting if a program is running within a session rather than somewhere on the host computer?

推荐答案


这篇关于vb.net和远程桌面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 15:11