detecting Terminal server session with c#
SystemInformation.TerminalServerSession Property
Note: This property is new in the .NET Framework version 2.0.
Gets a value indicating whether the calling process is associated with a Terminal Services client session.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Syntax
| C# |
|---|
public static bool TerminalServerSession { get; } |
Property Value
true if the calling process is associated with a Terminal Services client session; otherwise, false.
Remarks
The TerminalServerSession property indicates whether the calling process is associated with a Terminal Services client session.
Note |
|---|
| This property is supported only on Windows NT 4.0 SP4 or later, Windows 98, Windows Millennium Edition, Windows 2000, Windows XP, and the Windows Server 2003 family. |
No comments yet.
Note



