_WAIT_CHILD、_WAIT_GRANDCHILD_WAIT_CHILD, _WAIT_GRANDCHILD

语法Syntax


#include <process.h>  

备注Remarks

_cwait 函数可以由任何进程用来等待任何其他进程(如果进程 ID 是已知的)。The _cwait function can be used by any process to wait for any other process (if the process ID is known). 操作参数可以是以下值之一:The action argument can be one of the following values:

常量Constant 含义Meaning
_WAIT_CHILD 调用进程一直等到指定的新进程终止。Calling process waits until specified new process terminates.
_WAIT_GRANDCHILD 调用进程一直等到指定的新进程以及由该新进程创建的所有进程终止。Calling process waits until specified new process, and all processes created by that new process, terminate.

另请参阅See Also

_cwait _cwait
全局常量Global Constants