OP Get process list

4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next

version 1.5


OP Get process list (connectionID; countProcesses; userNames; stationNames; taskNames; timeSpent; taskStatus) Longint

ParameterTypeDescription
connectionIDLongintConnection ID with target server
countProcessesLongintNumber of running processes on server
userNamesArrayArray of processes' user names
stationNamesArrayArray of processes' station names
taskNamesArrayArray of processes names
timeSpentArrayArray of processes' elapsed time
taskStatusArrayArray of processes' statuses
Function resultLongintError 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:

NumericAlpha
0Executing
1Delayed
2Waiting for user event
3Waiting for Input/Output
4Waiting for internal flag
5Paused
6Hidden modal dialog

Error Codes

If OP Get process list executes successfully, it returns 0. Otherwise, this function returns one of the following errors:

Error CodeDescription
-108Not enough memory to perform this operation.
10128The 4D Open for 4th Dimension package has not been initialized.
10135Invalid parameter type.
10136The connection does not exist.
10154This command cannot be executed right now.

See Also

OP Count user processes, PROCESS PROPERTIES.


4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next