title: How to get Windows user name from SessionID?
body: <p>Is there a method in C# to retrieve the user name from a given session id?<br />
  (any session running on the system)</p>
  <p>The Win API function <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa383838%28v=vs.85%29.aspx" rel="nofollow noreferrer"><code>WTSQuerySessionInformation</code></a> does this, but I'm searching for this functionality in C#.</p>