//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ /* */ namespace Microsoft.Win32 { using System.Diagnostics; using System; /// /// Specifies the reason for the session switch /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue")] public enum SessionSwitchReason { /// /// A session was connected to the console session. /// ConsoleConnect = NativeMethods.WTS_CONSOLE_CONNECT, /// /// A session was disconnected from the console session. /// ConsoleDisconnect = NativeMethods.WTS_CONSOLE_DISCONNECT, /// /// A session was connected to the remote session. /// RemoteConnect = NativeMethods.WTS_REMOTE_CONNECT, /// /// A session was disconnected from the remote session. /// RemoteDisconnect = NativeMethods.WTS_REMOTE_DISCONNECT, /// /// A user has logged on to the session. /// SessionLogon = NativeMethods.WTS_SESSION_LOGON, /// /// A user has logged off the session. /// SessionLogoff = NativeMethods.WTS_SESSION_LOGOFF, /// /// A session has been locked. /// SessionLock = NativeMethods.WTS_SESSION_LOCK, /// /// A session has been unlocked. /// SessionUnlock = NativeMethods.WTS_SESSION_UNLOCK, /// /// A session has changed its remote controlled status. /// SessionRemoteControl = NativeMethods.WTS_SESSION_REMOTE_CONTROL } }