|
WtsSessionInfo Fields |
The WtsSessionInfo type exposes the following members.
Fields | Name | Description |
---|
| DomainName |
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.
|
| ExecEnvId |
An identifier that uniquely identifies the session within the list of sessions returned by
the function.
|
| FarmName |
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.
|
| HostName |
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.
|
| SessionId |
A session identifier assigned by the RD Session Host server, RD Virtualization Host server,
or virtual machine.
|
| SessionName |
A pointer to a null-terminated string that contains the name of this session. For example,
"services", "console", or "RDP-Tcp#0".
|
| State |
A value of the enumeration type that specifies the
connection state of a Remote Desktop Services session.
|
| UserName |
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.
|
TopSee Also