|
JWSCL Documentation
|
TJwWTSProcessList = class(TObjectList);
TJwWTSProcessList is a List of all Processes running on the Terminal Server and their properties
Each item in the list points to a TJwWTSProcess object that can be queried and manipulated. The list is filled by calling the EnumerateProcesses function of the owning TJwTerminalServer instance.
var ATerminalServer: TJwTerminalServer; i: Integer; begin // Create Terminal Server instance and allocate memory for it ATerminalServer := TjwTerminalServer.Create; // Set servername (only in case of remote server) ATerminalServer.Server := 'TS001'; // Remember that EnumerateProcesses will automatically connect to the // Terminal Server for you. The connect function raises an Exception // if the connection attempt was unsuccessfull, so better use try..except try if ATerminalServer.EnumerateProcesses then begin for i := 0 to ATerminalServer.Processes.Count-1 do begin Memo1.Lines.Add(ATerminalServer.Processes[i].ProcessName); end; end; except on E: EJwsclWinCallFailedException do begin // Handle Exception here end; end; // Free Memory ATerminalServer.Free; end;
|
Name |
Description |
|
The following tables list the members exposed by TJwWTSProcessList. | |
|
The methods of the TJwWTSProcessList class are listed here. | |
|
The properties of the TJwWTSProcessList class are listed here. |
|
|
Name |
Description |
|
Add adds a Process to the end of the Processlist | |
|
This is FindByPid, a member of class TJwWTSProcessList. | |
|
GetEnumerator returns an enumerator that can be used to iterate through the image list collection with Delphi's for in loop (Delphi 2005 and higher). | |
|
| |
|
Insert Adds an object to the list at a specified position | |
|
Remove removes the specified Session from the SessionList and if OwnsObjects is true (default) frees the Session. |
|
|
Name |
Description |
![]() |
This is CommitSizeTotal, a member of class TJwWTSProcessList. | |
![]() |
| |
|
This is Data, a member of class TJwWTSProcessList. | |
![]() |
| |
|
The Items[Index properties gives access to a Process and it's properties | |
![]() |
This is NonPagedPoolTotal, a member of class TJwWTSProcessList. | |
|
Owner specifies the TJwTerminalServer instance that owns the ProcessList | |
![]() |
This is PagedPoolTotal, a member of class TJwWTSProcessList. | |
![]() |
This is WorkingSetTotal, a member of class TJwWTSProcessList. |
|
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!
|