•  Back 
  •  GEMDOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FilePgetppid()                                                           GEMDOS

Syntax

WORD Pgetppid( VOID )

Function      Pgetppid() returns the process ID for the calling processes'
              parent.

Opcode        268 (0x10C)

Availability  This function is available under all MiNT versions
              integrated with MultiTOS.

Binding       move.w   #$10C,-(sp)
              trap     #1
              addq.l   #2,sp

Return Value  Pgetppid() returns the process ID code for the parent of the
              calling process or 0 if it was started by the kernel (not
              a child process).