Skip to content

Is there a way in C# to detect if the CLIENT's computer is connected to a remote win server?

Santos Junior

Asked Mar 14, 2011, 4:02 PM EDT2 answers
Share
LinkedInX
Is there a way to know if the client's computer has an active terminal server connection? I'm NOT asking if a given application is running under terminal server.  What I need to know is how to build a C# program composed of one simple form and a button.  When the button is pressed it display a messagebox that tells if there is a RDC (mstsc) active or not and if possible,  the remote server name when the connection is active.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    I am not sure how to do this but curious, have you looked at .NET Remoting classes and see if any class or class members is availalbe for this?
    0
  • 0
    I've never worked with .NET remoting classes before but thanks for the tip.
    0