Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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:




Overlays calling process with new process, destroying calling process (same effect as _exec calls).


Suspends calling thread until execution of new process is complete (synchronous _spawn).


Continues to execute calling process concurrently with new process (asynchronous _spawn).


Continues 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.

Community Additions

© 2015 Microsoft