|
JWSCL Documentation
|
TJwTerminalServer = class(TObject);
AbstractTJwTerminalServer is the central object of JwsclTerminalServer and holds the session- and processlist.
TJwTerminalServer offers connection to a Terminal Server which you can specify with the Server property. Key functions of TJwTerminalServer are:
TJwTerminalServer also offers Events to monitor Terminal Server activity such as OnSessionConnect, OnSessionCreate, OnSessionLogon and OnSessionLogoff.
The schema below shows the relations between TJwTerminalServer, the TJwWTSSessionList with TJwWTSSessions and the TJwWTSProcessList with TjwWTSSessions.
|
Name |
Description |
|
The following tables list the members exposed by TJwTerminalServer. | |
|
The methods of the TJwTerminalServer class are listed here. | |
|
The properties of the TJwTerminalServer class are listed here. |
|
|
Name |
Description |
| ||
| ||
|
This is the overview for the EnumerateProcesses method overload. | |
|
This is the overview for the EnumerateProcessesEx method overload. | |
| ||
| ||
|
FileTime2DateTime can be used to convert a non local (GMT time) FileTime to a localised TDateTime var. | |
|
This is IsValidServerHandle, a member of class TJwTerminalServer. | |
|
This is Session, a member of class TJwTerminalServer. | |
|
Shutdown shuts down (and optionally restarts) the specified terminal server. |
|
|
Name |
Description |
![]() |
ComputerName returns the local computername. This property is convenient if you are connecting to Terminal Server locally or want to check if a servername = computername. | |
![]() |
Connected indicates if we are connected to the Terminal Server | |
|
Data allows storage of a pointer to user specific data and can be freely used. | |
![]() |
| |
![]() |
The LastEventFlag property can be used to see the Last Session Event that occured. This is usefull if you are listening on multiple event types. | |
|
The OnLicenseStateChange event is fired when when a license is added or deleted using License Manager. | |
| ||
|
The OnSessionConnect event is fired when a client connects to a session | |
|
The OnSessionCreate event is fired when a session is created | |
|
The OnSessionDelete event is fired when a session is deleted | |
|
The OnSessionDisconnect event is fired when a session is disconnected | |
|
The OnSessionEvent is a generic event which is fired if anything happens that is session related, like statechange, logon/logoff, disconnect and (re)connect. The table below shows which Terminal Server event triggers which event: | |
|
The OnSessionLogoff event is fired when a client logs off either from the console or a session | |
|
The OnSessionLogon event is fired when a client logs on either through the console or a session | |
|
The OnSessionStateChange event is fired when the connectstate of a session has changed | |
|
The OnWinStationRename event is fired when an existing session has been renamed | |
|
This is PhysicalMemory, a member of class TJwTerminalServer. | |
|
Processes contains a TJwWTSProcessList of which each item contains a TJwWTSProcess. This processlist contains all enumerated processes and their properties such as Process Name, Process Id, Username, Memory Usage and so on. | |
![]() |
This is Processors, a member of class TJwTerminalServer. | |
|
Server the netbios name of the Terminal Server. | |
![]() |
| |
![]() |
Servers contains the list of Enumerated Terminal Servers. May be nil! | |
|
Sessions contains a TJwWTSSessionList of which each item contains a TJwWTSSession. This sessionlist contains all enumerated sessions and their properties such as Username, Connection State, Idle Time and so on. | |
![]() |
This is Statistics, a member of class TJwTerminalServer. | |
![]() |
SystemUserName returns the (localised) name of the system user | |
|
Tag has no predefined meaning. The Tag property is provided for the convenience of developers. It can be used for storing an additional integer value or it can be typecast to any 32-bit value such as a component reference or a pointer. |
|
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!
|