Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.5 KB

spawn-constants.md

File metadata and controls

31 lines (24 loc) · 1.5 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: spawn Constants
spawn Constants
11/04/2016
PROCESS/_P_NOWAIT
PROCESS/_P_OVERLAY
PROCESS/_P_WAIT
PROCESS/_P_DETACH
PROCESS/_P_NOWAITO
_P_NOWAIT
_P_OVERLAY
_P_WAIT
_P_DETACH
_P_NOWAITO
_P_OVERLAY constant
P_DETACH constant
P_OVERLAY constant
P_NOWAIT constant
_P_DETACH constant
_P_NOWAIT constant
_P_NOWAITO constant
P_NOWAITO constant
spawn constants
P_WAIT constant
_P_WAIT constant
e0533e88-d362-46fc-b53c-5f193226d879

spawn constants

Syntax

#include <process.h>

Remarks

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

Constant Meaning
_P_OVERLAY Overlays calling process with new process, destroying calling process (same effect as _exec calls).
_P_WAIT Suspends calling thread until execution of new process is complete (synchronous _spawn).
_P_NOWAIT, _P_NOWAITO Continues to execute calling process concurrently with new process (asynchronous _spawn).
_P_DETACH 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 _spawn is asynchronous.

See also

_spawn, _wspawn functions
Global constants