Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual—522629-013
12-211
PROCESSHANDLE_COMPARE_ Procedure
PROCESSHANDLE_COMPARE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Summary
The PROCESSHANDLE_COMPARE_ procedure compares two process handles and
reports whether they are identical, represent different processes of the same process
pair, or different.
PROCESSHANDLE_COMPARE_ is primarily useful for determining whether
processes form a process pair. You can determine whether two process handles are
identical by doing a ten-word unsigned comparison.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
status returned value
INT
returns the result of the comparison. Valid values are:
0 Process handles are unrelated.
1 Process handles are not identical but designate a process pair.
2 Process handles are identical.
processhandle-1 input
INT .EXT:ref:10
is one of the process handles to be compared.
#include <cextdecs(PROCESSHANDLE_COMPARE_)>
short PROCESSHANDLE_COMPARE_ ( short *processhandle-1
,short *processhandle-2 );
status := PROCESSHANDLE_COMPARE_ ( processhandle-1 ! i
,processhandle-2 ); ! i