DosWaitChild() Function

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.


[Back: Synchronization Using the DosWaitThread() Function (Part 2)]
[Next: Dynamically Inserting a Menu Bar Item]