STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Typedefs | Functions | Variables
process.h File Reference
#include <corecrt.h>
#include <corecrt_startup.h>
#include <corecrt_wprocess.h>

Go to the source code of this file.

Macros

#define _INC_PROCESS
 
#define _P_WAIT   0
 
#define _P_NOWAIT   1
 
#define _OLD_P_OVERLAY   2
 
#define _P_NOWAITO   3
 
#define _P_DETACH   4
 
#define _P_OVERLAY   2
 
#define _WAIT_CHILD   0
 
#define _WAIT_GRANDCHILD   1
 
#define P_WAIT   _P_WAIT
 
#define P_NOWAIT   _P_NOWAIT
 
#define P_OVERLAY   _P_OVERLAY
 
#define OLD_P_OVERLAY   _OLD_P_OVERLAY
 
#define P_NOWAITO   _P_NOWAITO
 
#define P_DETACH   _P_DETACH
 
#define WAIT_CHILD   _WAIT_CHILD
 
#define WAIT_GRANDCHILD   _WAIT_GRANDCHILD
 

Typedefs

typedef void(__stdcall * _tls_callback_type) (void *, unsigned long, void *)
 
typedef unsigned(__stdcall * _beginthreadex_proc_type) (void *)
 
typedef int(__cdecl * _GetDllProcAddrProcType) (void)
 

Functions

_ACRTIMP __declspec (noreturn) void __cdecl exit(_In_ int _Code)
 Cancels the currently executing task. This function can be called from within the body of a task to abort the task's execution and cause it to enter the canceled state. While it may be used in response to a cancellation request through a cancellation_token, you may also use it by itself, to initiate cancellation of the task that is currently executing. More...
 
_DCRTIMP int __cdecl system (_In_opt_z_ char const *_Command)
 
_ACRTIMP void __cdecl _cexit (void)
 
_ACRTIMP void __cdecl _c_exit (void)
 
_ACRTIMP void __cdecl _register_thread_local_exe_atexit_callback (_In_ _tls_callback_type _Callback)
 
typedef void (__cdecl *_beginthread_proc_type)(void *)
 
_ACRTIMP uintptr_t __cdecl _beginthread (_In_ _beginthread_proc_type _StartAddress, _In_ unsigned _StackSize, _In_opt_ void *_ArgList)
 
_ACRTIMP void __cdecl _endthread (void)
 
 _Success_ (return!=0) _ACRTIMP uintptr_t __cdecl _beginthreadex(_In_opt_ void *_Security
 
_ACRTIMP void __cdecl _endthreadex (_In_ unsigned _ReturnCode)
 
_ACRTIMP int __cdecl _getpid (void)
 
_DCRTIMP intptr_t __cdecl _cwait (_Out_opt_ int *_TermStat, _In_ intptr_t _ProcHandle, _In_ int _Action)
 
_DCRTIMP intptr_t __cdecl _execl (_In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl _execle (_In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl _execlp (_In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl _execlpe (_In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl _execv (_In_z_ char const *_FileName, _In_z_ char const *const *_Arguments)
 
_DCRTIMP intptr_t __cdecl _execve (_In_z_ char const *_FileName, _In_z_ char const *const *_Arguments, _In_opt_z_ char const *const *_Environment)
 
_DCRTIMP intptr_t __cdecl _execvp (_In_z_ char const *_FileName, _In_z_ char const *const *_Arguments)
 
_DCRTIMP intptr_t __cdecl _execvpe (_In_z_ char const *_FileName, _In_z_ char const *const *_Arguments, _In_opt_z_ char const *const *_Environment)
 
_DCRTIMP intptr_t __cdecl _spawnl (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl _spawnle (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl _spawnlp (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl _spawnlpe (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl _spawnv (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *const *_Arguments)
 
_DCRTIMP intptr_t __cdecl _spawnve (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *const *_Arguments, _In_opt_z_ char const *const *_Environment)
 
_DCRTIMP intptr_t __cdecl _spawnvp (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *const *_Arguments)
 
_DCRTIMP intptr_t __cdecl _spawnvpe (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *const *_Arguments, _In_opt_z_ char const *const *_Environment)
 
_DCRTIMP intptr_t __cdecl _loaddll (_In_z_ char *_FileName)
 
_DCRTIMP int __cdecl _unloaddll (_In_ intptr_t _Handle)
 
_DCRTIMP _GetDllProcAddrProcType __cdecl _getdllprocaddr (_In_ intptr_t _Handle, _In_opt_z_ char *_ProcedureName, _In_ intptr_t _Ordinal)
 
_DCRTIMP intptr_t __cdecl cwait (_Out_opt_ int *_TermStat, _In_ intptr_t _ProcHandle, _In_ int _Action)
 
_DCRTIMP intptr_t __cdecl execl (_In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl execle (_In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl execlp (_In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl execlpe (_In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl execv (_In_z_ char const *_FileName, _In_z_ char const *const *_Arguments)
 
_DCRTIMP intptr_t __cdecl execve (_In_z_ char const *_FileName, _In_z_ char const *const *_Arguments, _In_opt_z_ char const *const *_Environment)
 
_DCRTIMP intptr_t __cdecl execvp (_In_z_ char const *_FileName, _In_z_ char const *const *_Arguments)
 
_DCRTIMP intptr_t __cdecl execvpe (_In_z_ char const *_FileName, _In_z_ char const *const *_Arguments, _In_opt_z_ char const *const *_Environment)
 
_DCRTIMP intptr_t __cdecl spawnl (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl spawnle (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl spawnlp (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl spawnlpe (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *_Arguments,...)
 
_DCRTIMP intptr_t __cdecl spawnv (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *const *_Arguments)
 
_DCRTIMP intptr_t __cdecl spawnve (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *const *_Arguments, _In_opt_z_ char const *const *_Environment)
 
_DCRTIMP intptr_t __cdecl spawnvp (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *const *_Arguments)
 
_DCRTIMP intptr_t __cdecl spawnvpe (_In_ int _Mode, _In_z_ char const *_FileName, _In_z_ char const *const *_Arguments, _In_opt_z_ char const *const *_Environment)
 
_ACRTIMP int __cdecl getpid (void)
 

Variables

_In_ unsigned _StackSize
 
_In_ unsigned _In_ _beginthreadex_proc_type _StartAddress
 
_In_ unsigned _In_ _beginthreadex_proc_type _In_opt_ void_ArgList
 
_In_ unsigned _In_ _beginthreadex_proc_type _In_opt_ void _In_ unsigned _InitFlag
 
_In_ unsigned _In_ _beginthreadex_proc_type _In_opt_ void _In_ unsigned _Out_opt_ unsigned * _ThrdAddr
 

Macro Definition Documentation

#define _INC_PROCESS
#define _OLD_P_OVERLAY   2
#define _P_DETACH   4
#define _P_NOWAIT   1
#define _P_NOWAITO   3
#define _P_OVERLAY   2
#define _P_WAIT   0
#define _WAIT_CHILD   0
#define _WAIT_GRANDCHILD   1
#define OLD_P_OVERLAY   _OLD_P_OVERLAY
#define P_DETACH   _P_DETACH
#define P_NOWAIT   _P_NOWAIT
#define P_NOWAITO   _P_NOWAITO
#define P_OVERLAY   _P_OVERLAY
#define P_WAIT   _P_WAIT
#define WAIT_CHILD   _WAIT_CHILD
#define WAIT_GRANDCHILD   _WAIT_GRANDCHILD

Typedef Documentation

typedef unsigned(__stdcall* _beginthreadex_proc_type) (void *)
typedef int(__cdecl* _GetDllProcAddrProcType) (void)
typedef void(__stdcall * _tls_callback_type) (void *, unsigned long, void *)

Function Documentation

_ACRTIMP __declspec ( noreturn  )
inline

Cancels the currently executing task. This function can be called from within the body of a task to abort the task's execution and cause it to enter the canceled state. While it may be used in response to a cancellation request through a cancellation_token, you may also use it by itself, to initiate cancellation of the task that is currently executing.

It is not a supported scenario to call this function if you are not within the body of a task. Doing so will result in undefined behavior such as a crash or a hang in your application.

See also
task Class
133 {
134  _THROW_NCEE(task_canceled, _EMPTY_ARGUMENT);
135 }
#define _THROW_NCEE(x, y)
Definition: xstddef:51
#define _EMPTY_ARGUMENT
Definition: xstddef:77
_ACRTIMP uintptr_t __cdecl _beginthread ( _In_ _beginthread_proc_type  _StartAddress,
_In_ unsigned  _StackSize,
_In_opt_ void _ArgList 
)
_ACRTIMP void __cdecl _c_exit ( void  )
_ACRTIMP void __cdecl _cexit ( void  )
_DCRTIMP intptr_t __cdecl _cwait ( _Out_opt_ int _TermStat,
_In_ intptr_t  _ProcHandle,
_In_ int  _Action 
)
_ACRTIMP void __cdecl _endthread ( void  )
_ACRTIMP void __cdecl _endthreadex ( _In_ unsigned  _ReturnCode)
_DCRTIMP intptr_t __cdecl _execl ( _In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl _execle ( _In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl _execlp ( _In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl _execlpe ( _In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl _execv ( _In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments 
)
_DCRTIMP intptr_t __cdecl _execve ( _In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments,
_In_opt_z_ char const *const *  _Environment 
)
_DCRTIMP intptr_t __cdecl _execvp ( _In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments 
)
_DCRTIMP intptr_t __cdecl _execvpe ( _In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments,
_In_opt_z_ char const *const *  _Environment 
)
_DCRTIMP _GetDllProcAddrProcType __cdecl _getdllprocaddr ( _In_ intptr_t  _Handle,
_In_opt_z_ char _ProcedureName,
_In_ intptr_t  _Ordinal 
)
_ACRTIMP int __cdecl _getpid ( void  )
_DCRTIMP intptr_t __cdecl _loaddll ( _In_z_ char _FileName)
_ACRTIMP void __cdecl _register_thread_local_exe_atexit_callback ( _In_ _tls_callback_type  _Callback)
_DCRTIMP intptr_t __cdecl _spawnl ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl _spawnle ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl _spawnlp ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl _spawnlpe ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl _spawnv ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments 
)
_DCRTIMP intptr_t __cdecl _spawnve ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments,
_In_opt_z_ char const *const *  _Environment 
)
_DCRTIMP intptr_t __cdecl _spawnvp ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments 
)
_DCRTIMP intptr_t __cdecl _spawnvpe ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments,
_In_opt_z_ char const *const *  _Environment 
)
_Success_ ( return!  = 0)
_DCRTIMP int __cdecl _unloaddll ( _In_ intptr_t  _Handle)
_DCRTIMP intptr_t __cdecl cwait ( _Out_opt_ int _TermStat,
_In_ intptr_t  _ProcHandle,
_In_ int  _Action 
)
_DCRTIMP intptr_t __cdecl execl ( _In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl execle ( _In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl execlp ( _In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl execlpe ( _In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl execv ( _In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments 
)
_DCRTIMP intptr_t __cdecl execve ( _In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments,
_In_opt_z_ char const *const *  _Environment 
)
_DCRTIMP intptr_t __cdecl execvp ( _In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments 
)
_DCRTIMP intptr_t __cdecl execvpe ( _In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments,
_In_opt_z_ char const *const *  _Environment 
)
_ACRTIMP int __cdecl getpid ( void  )
_DCRTIMP intptr_t __cdecl spawnl ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl spawnle ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl spawnlp ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl spawnlpe ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *  _Arguments,
  ... 
)
_DCRTIMP intptr_t __cdecl spawnv ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments 
)
_DCRTIMP intptr_t __cdecl spawnve ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments,
_In_opt_z_ char const *const *  _Environment 
)
_DCRTIMP intptr_t __cdecl spawnvp ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments 
)
_DCRTIMP intptr_t __cdecl spawnvpe ( _In_ int  _Mode,
_In_z_ char const *  _FileName,
_In_z_ char const *const *  _Arguments,
_In_opt_z_ char const *const *  _Environment 
)
_DCRTIMP int __cdecl system ( _In_opt_z_ char const *  _Command)
typedef void ( __cdecl *  _beginthread_proc_type)

Variable Documentation

_In_ unsigned _In_ _beginthreadex_proc_type _In_opt_ void _In_ unsigned _InitFlag
_In_ unsigned _StackSize
_In_ unsigned _In_ _beginthreadex_proc_type _StartAddress
_In_ unsigned _In_ _beginthreadex_proc_type _In_opt_ void _In_ unsigned _Out_opt_ unsigned* _ThrdAddr