Jump to content

Sys2QueryProcessList: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
Line 3: Line 3:
"priority" is in hexadecimal notation, all other numbers are decimal.
"priority" is in hexadecimal notation, all other numbers are decimal.


'''Notes:'''
;Notes:
- "process-type" will be one of:
*"process-type" will be one of:
    0 Full screen protect-mode session
*:0 Full screen protect-mode session
    1 Requires real mode. Dos emulation.
*:1 Requires real mode. Dos emulation.
    2 VIO windowable protect-mode session
*:2 VIO windowable protect-mode session
    3 Presentation Manager protect-mode session
*:3 Presentation Manager protect-mode session
    4 Detached protect-mode process.
*:4 Detached protect-mode process.
- If "priority" is 0 then the priority class could not be determined.
* If "priority" is 0 then the priority class could not be determined.
- If "executable-name" is "--" then the name could not be identified.
* If "executable-name" is "--" then the name could not be identified.


==Arguments==
==Arguments==
; REXX ARGUMENTS : 1. The name of the stem in which to return the results (REQUIRED)
#The name of the stem in which to return the results (REQUIRED)


==Return Value==
==Return Value==
; REXX RETURN VALUE : Number of processes found, or "" in case of error.
Number of processes found, or "" in case of error.


[[Category:RxUtilEx]]
[[Category:RxUtilEx]]

Latest revision as of 06:45, 3 May 2020

Gets a list of running processes. The results will be returned in a stem variable, where stem.0 contains number of items, and each stem item is a string of the form:

pid parent-pid process-type priority cpu-time executable-name

"priority" is in hexadecimal notation, all other numbers are decimal.

Notes
  • "process-type" will be one of:
    0 Full screen protect-mode session
    1 Requires real mode. Dos emulation.
    2 VIO windowable protect-mode session
    3 Presentation Manager protect-mode session
    4 Detached protect-mode process.
  • If "priority" is 0 then the priority class could not be determined.
  • If "executable-name" is "--" then the name could not be identified.

Arguments

  1. The name of the stem in which to return the results (REQUIRED)

Return Value

Number of processes found, or "" in case of error.