Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (G)
Guardian Procedure Calls Reference Manual—522629-013
6-2
GETCPCBINFO Procedure
GETCPCBINFO Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Example
Summary
The GETCPCBINFO procedure provides a process with information from its own (the
current) process control block (PCB).
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
request-id input
INT:value
specifies the information to be returned. Each request ID causes a value of type
INT to be returned in
cpcb-info. The list of valid request IDs are:
0 Remote creator flag; returns 1 in
cpcb-info if creator was remote.
1 Logged-on process state; returns 1 in
cpcb-info if the process is currently
logged on.
2 Safeguard-authenticated logon flag; returns 1 in
cpcb-info if the process
was started after successfully logging on via a terminal owned by Safeguard.
#include <cextdecs(GETCPCBINFO)>
void GETCPCBINFO ( short request-id
,short _near *cpcb-info
,short in-length
,short _near *out-length
,short _near *error );
CALL GETCPCBINFO ( request-id ! i
,cpcb-info ! o
,in-length ! i
,out-length ! o
,error ); ! o