Click or drag to resize
Xcalibur Systems LLC Logo

WtsSessionInfo Fields

The WtsSessionInfo type exposes the following members.

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