HPlogo MPE/iX Intrinsics Reference Manual > Chapter 6 Command Definitions (FLUSHLOG-GETUSERMODE)

GETPROCID

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Returns the process identification number (PIN) of a child process. Process handling (PH) capability is required.

Syntax



  I16               I16V
  pin := GETPROCID (numchild);

Functional Return


pin

16-bit signed integer (assigned functional return)

Returns the PIN of the specified child process.

Parameters


numchild

16-bit signed integer by value (required)

Passes a number indicating which child's PIN GETPROCID returns. The value of numchild corresponds to the order of creation of the current children of the calling process, as follows:

ValueMeaning
<= 1PIN of the oldest child process
2PIN of second oldest child process
......
nPIN of the most recently created child process (where n is the number of children currently in existence)
>nA value greater than the number of children in existence, returns a zero.

Related Information


Intrinsics ACTIVATE, CREATE, CREATEPROCESS, GETORIGIN, KILL, SUSPEND
Manuals Process Management Programmer's Guide




GETPRIVMODE


GETPROCINFO