version 1.5
OP Get process list (connectionID; countProcesses; userNames; stationNames; taskNames; timeSpent; taskStatus) Longint
Parameter | Type | Description | |
connectionID | Longint | Connection ID with target server | |
countProcesses | Longint | Number of running processes on server | |
userNames | Array | Array of processes' user names | |
stationNames | Array | Array of processes' station names | |
taskNames | Array | Array of processes names | |
timeSpent | Array | Array of processes' elapsed time | |
taskStatus | Array | Array of processes' statuses | |
Function result | Longint | Error code result for the function |
Description
OP Get process list gets information about the processes running on the server machine.
userNames, stationNames, and taskNames are String or Text arrays.
timeSpent and taskStatus are String, Text, Integer, Long Integer, or Real arrays.
The values returned in the taskStatus array depend on the type of array passed, based on the following table:
Numeric | Alpha |
0 | Executing |
1 | Delayed |
2 | Waiting for user event |
3 | Waiting for Input/Output |
4 | Waiting for internal flag |
5 | Paused |
6 | Hidden modal dialog |
Error Codes
If OP Get process list executes successfully, it returns 0. Otherwise, this function returns one of the following errors:
Error Code | Description |
-108 | Not enough memory to perform this operation. |
10128 | The 4D Open for 4th Dimension package has not been initialized. |
10135 | Invalid parameter type. |
10136 | The connection does not exist. |
10154 | This command cannot be executed right now. |
See Also
OP Count user processes, PROCESS PROPERTIES.