HPlogo MPE/iX Intrinsics Reference Manual > Chapter 9 Command Definitions (MAIL-PUTJCW)

PROCINFO

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Provides access to process information.

Syntax



            I16         I16         I16V
  PROCINFO (infoerror1, infoerror2, pin
             I16V      *
           [,itemnum1, item1] [...] [,itemnum6,item6]);


NOTE: You can specify up to six itemnum,item pairs.

Parameters


error1

16-bit signed integer by reference (required)

Returns a value indicating the success or failure of the intrinsic call. Refer to Table 9-1 "PROCINFO Error1, Error2 Values".

error2

16-bit signed integer by reference (required)

Returns a value that supplies additional error information in error1. Refer to Table 9-1 "PROCINFO Error1, Error2 Values".

pin

16-bit signed integer by value (required)

Passes the process identification number (PIN) of the process for which information is to be returned in the item parameter. A zero returns information about the calling process.

This parameter is not compatible with the pin parameter of the GETPROCINFO intrinsic.

itemnum

16-bit signed integer by value (optional)

Passes the item number of an information option, as defined in Table 9-2 "PROCINFO Itemnum/Item Values".

item

type varies (optional)

Returns information about the process specified by pin, as specified in Table 9-2 "PROCINFO Itemnum/Item Values"

Table 9-1 PROCINFO Error1, Error2 Values

Error 1 Description Error 2
0Successful0
1Insufficient capability Index of offending itemnum
3Required parameter address (other than error1) out of boundsNot used
4Illegal array size Array size passed to PROCINFO
5Invalid itemnum Index of offending itemnum
6Invalid PIN; no information returned -1
7Unassigned PIN-1
8Unpaired itemnum,item parameters Index of offending itemnum,item parameters
9Invalid access to information-1
10Invalid address entered for item Index of offending itemnum,item parameters
11The process name cannot be represented using the desired syntax Index of offending itemnum,item parameters


NOTE: The process aborts if the error1 parameter address is illegal.

If an error condition is detected while processing an information request, the index of the itemnum, where the offending option was located, is stored in error2.


Table 9-2 PROCINFO Itemnum/Item Values

Condition Codes


CCE (2)Request granted. Error1 and error2 return zero.
CCG (0)Not returned.
CCL (1)Request denied. Error codes set and returned in error1 and error2.

Related Information


IntrinsicsGETINFO, GETPRIORITY, GETPROCINFO, HPMYFILE, HPMYPROGRAM, JOBINFO, PROCTIME, WHO
Manuals Process Management Programmer's Guide




PRINTOPREPLY


PROCTIME