|
JWSCL Documentation
|
TJwWTSSession = class(TObjectList);
TJwWTSSession is a Class that encapsulates a Terminal Server session and it's properties
A session is uniquely identified with a SessionID, this is a number between 0 and 65535.
A TJwWTSSession is owned by a JTwWTSSessionList.
|
Name |
Description |
|
The following tables list the members exposed by TJwWTSSession. | |
|
The methods of the TJwWTSSession class are listed here. | |
|
The properties of the TJwWTSSession class are listed here. |
|
|
Name |
Description |
|
The Connect function allows you to connect to another Terminal Server session. | |
|
The Disconnect function disconnects the logged-on user from the specified Terminal Services session without closing the session. The session remains attached to the terminal server in the disconnected state and currently running applications continue to run. When you attempt to reconnect to the same server , you are reconnected to the same session from which you disconnected, even if you are reconnecting from a different computer. Applications that were left open when you disconnected remain running when you reconnect to the session, with no loss of data. In NLB (Network Load Balancing) environments the Session Directory (starting from Server 2008... more | |
|
| |
|
| |
|
The Logoff function logs off a specified Terminal Services session | |
|
The PostMessage function displays a message box on the client desktop. | |
|
| |
|
This is SendLocalMessage, a member of class TJwWTSSession. | |
|
The SendMessage function displays a message box on the client desktop. | |
|
The Shadow function starts the remote control of another Terminal Services session. You must call this function from a remote session. |
|
|
Name |
Description |
![]() |
ApplicationName returns the the startup application as specified in the Terminal Server client. If no startup application was specified an empty string is returned. | |
![]() |
ClientAddress returns the Client IP Address as string. This is the local IP address of a client as reported by the Terminal Server Client | |
|
ClientBuildNumber returns the version number of the Terminal Server Client | |
![]() |
ClientDirectory returns the version number of the Terminal Server Client | |
![]() |
ClientHardwareId returns a client-specific hardware identifier | |
![]() |
ClientName returns the local computer name of the client | |
![]() |
ClientProductId returns a client-specific product identifier. | |
![]() |
ClientProtocolStr returns a string that indicates the protocol type This is one of the following values: | |
![]() |
ClientProtocolType returns a value that indicates the protocol type This is one of the following values: | |
![]() |
ColorDepth returns the number of colors used in the terminal session. | |
![]() |
CompressionRatio returns the current compression ratio as string with 2 decimals. Compression Ratio equals OutgoingCompressBytes / OutgoingBytescompressed Console sessions always returns empty value. | |
![]() |
ConnectState returns the connection state of the session. Which can be one of the following values: | |
![]() |
ConnectStateStr returns a localised connection state string. | |
![]() |
ConnectTime The most recent client connection time. | |
![]() |
CurrentTime the time that the TJwWTSSession info was queried. This can be used to calculate time differences such as idle time | |
![]() |
This is CurrentTimeEx, a member of class TJwWTSSession. | |
|
Data allows storage of a pointer to user specific data and can be freely used. | |
![]() |
DisconnectTime the last client disconnection time. | |
![]() |
Domain the domain of the logged-on user | |
![]() |
HorizontalResolution returns the width resolution of the terminal session display in pixels. | |
![]() |
IdleTime the elapsed time (relative to CurrentTime) since last user input in the session expressed in the number of 100-nanosecond intervals since January 1, 1601 (TFileTime). | |
![]() |
IdleTimeStr the elapsed time (relative to CurrentTime) since last user input in the session as formatted string. The string is formatted according to the table below: | |
![]() |
IncomingBytes uncompressed Remote Desktop Protocol (RDP) data from the client to the server. | |
![]() |
InitialProgram string containing the name of the initial program that Terminal Services runs when the user logs on. | |
![]() |
LastInputTime the time of the last user input in the session. | |
![]() |
LogonTime the time that the user logged on to the session in the number of 100-nanosecond intervals since January 1, 1601 (TFileTime). | |
![]() |
LogonTimeStr the time that the user logged on to the session as a localised Date Time string. | |
![]() |
OutgoingBytes uncompressed RDP data from the server to the client. | |
|
Owner of this session object, which can only be a TJwWTSSessionList | |
![]() |
RemoteAddress returns the real IP Address that is connected to the Terminal Server. | |
![]() | ||
![]() |
Server the netbios name of the Terminal Server. | |
![]() |
SessionId the session identifier There are some reserved SessionId's that serve a special purpose. The following table lists the reserved SessionId's: | |
![]() | ||
![]() |
Token returns the token of the session. This call needs the TCB privilege and the process must run under SYSTEM account; otherwise EJwsclPrivilegeCheckException, EJwsclWinCallFailedException is raised. The returned value is cached and must not be freed! | |
![]() |
Username the name of the user associated with the session. | |
![]() |
UserSid returns the logged on User of the session. This call needs the TCB privilege and the process must run under SYSTEM account; otherwise EJwsclPrivilegeCheckException, EJwsclWinCallFailedException is raised. The returned token is the user's primary access token which can be passed directly to CreateProcessAsUser in order to launch a process in the user's Session. | |
![]() |
VerticalResolution returns the height resolution of the terminal session display in pixels. | |
![]() |
WinStationDriver Flag (WdFlag) returns a value indicating the protocol and connection type. It's usefull for easy determination of console session. Possible values: | |
![]() |
WinStationDriver Name (WinStationDriverName) returns a value indicating the protocol and protocol type. Known Microsoft values: | |
![]() |
WinStationName returns the session name. | |
![]() |
WorkingDirectory the default directory used when launching the initial program. |
|
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc. |
|
What do you think about this topic? Send feedback!
|