rc = DosWaitChild(DCWA_PROCESS, /* Wait for this process only */
DCWW_WAIT, /* Wait until termination */
&ReturnInfo, /* Returned info */
&pidServer, /* Returned process ID */
pidServer); /* Process id to wait on */
This example assumes that the DosExecPgm() call shown in Figure "Starting a Child Process" has already been executed.