ppid (PPID) - output
ppid is returned only when the value specified for Related is 1 (SSF_RELATED_CHILD). The ppid returned may not be used on any system functions (for example, DosSetPriority) that require a parent process/child process relationship.
This parameter is not returned for independent sessions. For more information about independent sessions, refer to the Related field in the STARTDATA structure.
Refer to "Parent/Child Relationship" in the Remarks section for more information about child processes.