mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
7bd28e4357
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
using ProcessHacker.Native.Objects;
|
|
|
|
namespace ProcessHacker
|
|
{
|
|
public partial class SessionInformationWindow : Form
|
|
{
|
|
public SessionInformationWindow(TerminalServerSession session)
|
|
{
|
|
InitializeComponent();
|
|
this.AddEscapeToClose();
|
|
this.SetTopMost();
|
|
|
|
labelUsername.Text = session.DomainName + "\\" + session.UserName;
|
|
labelSessionId.Text = session.SessionId.ToString();
|
|
labelState.Text = session.State.ToString();
|
|
|
|
if (!string.IsNullOrEmpty(session.ClientName))
|
|
labelClientName.Text = session.ClientName;
|
|
if (session.ClientAddress != null)
|
|
labelClientAddress.Text = session.ClientAddress.ToString();
|
|
if (session.ClientDisplay.ColorDepth != 0 &&
|
|
session.ClientDisplay.ColorDepth != 2) // HACK
|
|
labelClientDisplayResolution.Text =
|
|
session.ClientDisplay.HorizontalResolution + "x" +
|
|
session.ClientDisplay.VerticalResolution + "@" +
|
|
session.ClientDisplay.ColorDepth;
|
|
}
|
|
|
|
private void buttonClose_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|