title: How to detect RDC from C#.net
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/132620/how-do-you-retrieve-a-list-of-logged-in-connected-users-in-net">How do you retrieve a list of logged-in/connected users in .NET?</a>  </p>
  </blockquote>
  
  
  
  <p>I have hosted WCF service in IIS on a machine. Now i want to write a method in the service by which I could detect whether the hosted machine is currently being used by any Remote Desktop Connection or not. </p>
  
  <p>Is there any other better way to find out this, and what are the exact code APIs by which RDC connection is detected.</p>
  
  <p>I am using C#.net, framework 3.5</p>