title: How can I get username and remote machine name when user is connecting via RDC?
body: <p>I am using <code>SessionSwitch</code> of <code>SystemEvents</code> class to detect remote desktop connection and I need to know username of currently connecting user and remote machine name (from which user is connecting). How can I get this data in my Windows Service?</p>
  
  <p>I have found <code>Environment.UserName</code> but it's not what I need.</p>
  
  <p>Thanks in advance.</p>