DosSMParentSwitch

This will switch to the parent session if a child terminates. The argument seems to be passed in the register CX.

Syntax
APIRET16 Pascal far DOSSMPARENTSWITCH(CX)

Parameters

 * CX : session id of terminated session.

Return Code
APIRET16 Pascal far