We recommend using Visual Studio 2017

spawn Constants


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at spawn Constants.


#include <process.h>  

The mode argument determines the action taken by the calling process before and during a spawn operation. The following values for mode are possible:

_P_OVERLAYOverlays calling process with new process, destroying calling process (same effect as _exec calls).
_P_WAITSuspends calling thread until execution of new process is complete (synchronous _spawn).
_P_NOWAIT, _P_NOWAITOContinues to execute calling process concurrently with new process (asynchronous _spawn).
_P_DETACHContinues to execute calling process; new process is run in background with no access to console or keyboard. Calls to _cwait against new process will fail. This is an asynchronous _spawn.

_spawn, _wspawn Functions
Global Constants