Click or drag to resize
Xcalibur Systems LLC Logo

WtsSessionInfo Structure

Contains extended information about a client session on a Remote Desktop Session Host (RD Session Host) server or Remote Desktop Virtualization Host (RD Virtualization Host) server.

WTS_SESSION_INFO_1 structure

Inheritance Hierarchy
SystemObject
  SystemValueType
    Xcalibur.NativeMethods.V2.TerminalServicesWtsSessionInfo

Namespace: Xcalibur.NativeMethods.V2.TerminalServices
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
public struct WtsSessionInfo

The WtsSessionInfo type exposes the following members.

Methods
 NameDescription
Public methodEquals
(Inherited from ValueType)
Public methodGetHashCode
(Inherited from ValueType)
Public methodGetType
(Inherited from Object)
Public methodToString
(Inherited from ValueType)
Top
Fields
 NameDescription
Public fieldDomainName A pointer to a null-terminated string that contains the domain name of the user who is logged on to the session. If no user is logged on to the session, the string contains NULL.
Public fieldExecEnvId An identifier that uniquely identifies the session within the list of sessions returned by the function.
Public fieldFarmName A pointer to a null-terminated string that contains the name of the farm that the virtual machine is joined to. If the session is not running on a virtual machine that is joined to a farm, the string contains NULL.
Public fieldHostName A pointer to a null-terminated string that contains the name of the computer that the session is running on. If the session is running directly on an RD Session Host server or RD Virtualization Host server, the string contains NULL. If the session is running on a virtual machine, the string contains the name of the virtual machine.
Public fieldSessionId A session identifier assigned by the RD Session Host server, RD Virtualization Host server, or virtual machine.
Public fieldSessionName A pointer to a null-terminated string that contains the name of this session. For example, "services", "console", or "RDP-Tcp#0".
Public fieldState A value of the enumeration type that specifies the connection state of a Remote Desktop Services session.
Public fieldUserName A pointer to a null-terminated string that contains the name of the user who is logged on to the session. If no user is logged on to the session, the string contains NULL.
Top
See Also