/
SessionSwitchReason.cs
59 lines (49 loc) · 1.82 KB
/
SessionSwitchReason.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Diagnostics;
namespace Microsoft.Win32
{
/// <devdoc>
/// <para> Specifies the reason for the session switch</para>
/// </devdoc>
public enum SessionSwitchReason
{
/// <devdoc>
/// A session was connected to the console session.
/// </devdoc>
ConsoleConnect = Interop.Wtsapi32.WTS_CONSOLE_CONNECT,
/// <devdoc>
/// A session was disconnected from the console session.
/// </devdoc>
ConsoleDisconnect = Interop.Wtsapi32.WTS_CONSOLE_DISCONNECT,
/// <devdoc>
/// A session was connected to the remote session.
/// </devdoc>
RemoteConnect = Interop.Wtsapi32.WTS_REMOTE_CONNECT,
/// <devdoc>
/// A session was disconnected from the remote session.
/// </devdoc>
RemoteDisconnect = Interop.Wtsapi32.WTS_REMOTE_DISCONNECT,
/// <devdoc>
/// A user has logged on to the session.
/// </devdoc>
SessionLogon = Interop.Wtsapi32.WTS_SESSION_LOGON,
/// <devdoc>
/// A user has logged off the session.
/// </devdoc>
SessionLogoff = Interop.Wtsapi32.WTS_SESSION_LOGOFF,
/// <devdoc>
/// A session has been locked.
/// </devdoc>
SessionLock = Interop.Wtsapi32.WTS_SESSION_LOCK,
/// <devdoc>
/// A session has been unlocked.
/// </devdoc>
SessionUnlock = Interop.Wtsapi32.WTS_SESSION_UNLOCK,
/// <devdoc>
/// A session has changed its remote controlled status.
/// </devdoc>
SessionRemoteControl = Interop.Wtsapi32.WTS_SESSION_REMOTE_CONTROL
}
}