title: How do you retrieve a list of logged-in/connected users in .NET?
body: <p>Here's the scenario:</p>
  
  <p>You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session.</p>
  
  <p>Please note that this is the <strong>not</strong> the same as just retrieving the current interactive user.</p>
  
  <p>I'm guessing that there is some sort of API access to Terminal Services to get this info?</p>