void SystemEvents_SessionSwitch(object sender, SessionSwitchEventArgs e)
{
switch (e.Reason)
{
case SessionSwitchReason.ConsoleConnect:
break;
case SessionSwitchReason.ConsoleDisconnect:
break;
case SessionSwitchReason.RemoteConnect:
break;
case SessionSwitchReason.RemoteDisconnect:
break;
case SessionSwitchReason.SessionLock:
break;
case SessionSwitchReason.SessionLogoff:
break;
case SessionSwitchReason.SessionLogon:
break;
case SessionSwitchReason.SessionRemoteControl:
break;
case SessionSwitchReason.SessionUnlock:
break;
default:
break;
}
}