Guardian Application Conversion Guide
Allowing a High-PIN Creator
Converting TAL Applications
3–40 096047 Tandem Computers Incorporated
Getting Your Creator’s
Process Identifier
Your existing application might get the process ID of its creator directly using either
of:
The MOM procedure
The LOOKUPPROCESSNAME procedure
In either case, you must convert your program to use the corresponding D-series
procedure call as described in the following paragraphs.
Converting MOM Procedure Calls
Your existing application might get the process ID of its creator using the MOM
procedure as follows:
INT moms^process^id[0:3];
CALL MOM(moms^process^id);
Convert your program to use the D-series PROCESS_GETINFO_ procedure to return
the process handle instead:
INT my^process^handle[0:ZSYS^VAL^PHANDLE^WLEN - 1];
INT moms^process^handle[0:ZSYS^VAL^PHANDLE^WLEN - 1];
my^process^handle ':=' ZSYS^VAL^PHANDLE^WLEN * [-1];
CALL PROCESS_GETINFO_(my^process^handle,
!process^descriptor!,
!process^descriptor^length!,
!priority!,
moms^process^handle);
Converting LOOKUPPROCESSNAME Procedure Calls
Your existing application might get the process ID of its creator using the
LOOKUPPROCESSNAME procedure as follows:
INT ppd[0:9];
INT momsid[0:3];
ppd ':=' "$MYMOM ";
CALL LOOKUPPROCESSNAME(ppd);
momsid ':=' ppd[5] FOR 4;