STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Functions | Variables
process.h File Reference
#include <crtdefs.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 _CRT_TERMINATE_DEFINED
 
#define _CRT_SYSTEM_DEFINED
 
#define _CRT_WSYSTEM_DEFINED
 
#define _WPROCESS_DEFINED
 
#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
 

Functions

_CRTIMP uintptr_t __cdecl _beginthread (_In_ void(__cdecl *_StartAddress)(void *), _In_ unsigned _StackSize, _In_opt_ void *_ArgList)
 
_CRTIMP void __cdecl _endthread (void)
 
_CRTIMP uintptr_t __cdecl _beginthreadex (_In_opt_ void *_Security, _In_ unsigned _StackSize, _In_ unsigned(__stdcall *_StartAddress)(void *), _In_opt_ void *_ArgList, _In_ unsigned _InitFlag, _Out_opt_ unsigned *_ThrdAddr)
 
_CRTIMP void __cdecl _endthreadex (_In_ unsigned _Retval)
 
_CRTIMP __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 the is_task_cancellation_requested function, you may also use it by itself, to initiate cancellation of the task that is currently executing. More...
 
_CRTIMP void __cdecl _cexit (void)
 
_CRTIMP void __cdecl _c_exit (void)
 
_CRTIMP int __cdecl _getpid (void)
 
_CRTIMP intptr_t __cdecl _cwait (_Out_opt_ int *_TermStat, _In_ intptr_t _ProcHandle, _In_ int _Action)
 
_CRTIMP intptr_t __cdecl _execl (_In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _execle (_In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _execlp (_In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _execlpe (_In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _execv (_In_z_ const char *_Filename, _In_z_ const char *const *_ArgList)
 
_CRTIMP intptr_t __cdecl _execve (_In_z_ const char *_Filename, _In_z_ const char *const *_ArgList, _In_opt_z_ const char *const *_Env)
 
_CRTIMP intptr_t __cdecl _execvp (_In_z_ const char *_Filename, _In_z_ const char *const *_ArgList)
 
_CRTIMP intptr_t __cdecl _execvpe (_In_z_ const char *_Filename, _In_z_ const char *const *_ArgList, _In_opt_z_ const char *const *_Env)
 
_CRTIMP intptr_t __cdecl _spawnl (_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _spawnle (_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _spawnlp (_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _spawnlpe (_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _spawnv (_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *const *_ArgList)
 
_CRTIMP intptr_t __cdecl _spawnve (_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *const *_ArgList, _In_opt_z_ const char *const *_Env)
 
_CRTIMP intptr_t __cdecl _spawnvp (_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *const *_ArgList)
 
_CRTIMP intptr_t __cdecl _spawnvpe (_In_ int _Mode, _In_z_ const char *_Filename, _In_z_ const char *const *_ArgList, _In_opt_z_ const char *const *_Env)
 
_CRTIMP int __cdecl system (_In_opt_z_ const char *_Command)
 
_CRTIMP intptr_t __cdecl _wexecl (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _wexecle (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _wexeclp (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _wexeclpe (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _wexecv (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *const *_ArgList)
 
_CRTIMP intptr_t __cdecl _wexecve (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *const *_ArgList, _In_opt_z_ const wchar_t *const *_Env)
 
_CRTIMP intptr_t __cdecl _wexecvp (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *const *_ArgList)
 
_CRTIMP intptr_t __cdecl _wexecvpe (_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *const *_ArgList, _In_opt_z_ const wchar_t *const *_Env)
 
_CRTIMP intptr_t __cdecl _wspawnl (_In_ int _Mode, _In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _wspawnle (_In_ int _Mode, _In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _wspawnlp (_In_ int _Mode, _In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _wspawnlpe (_In_ int _Mode, _In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_ArgList,...)
 
_CRTIMP intptr_t __cdecl _wspawnv (_In_ int _Mode, _In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *const *_ArgList)
 
_CRTIMP intptr_t __cdecl _wspawnve (_In_ int _Mode, _In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *const *_ArgList, _In_opt_z_ const wchar_t *const *_Env)
 
_CRTIMP intptr_t __cdecl _wspawnvp (_In_ int _Mode, _In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *const *_ArgList)
 
_CRTIMP intptr_t __cdecl _wspawnvpe (_In_ int _Mode, _In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *const *_ArgList, _In_opt_z_ const wchar_t *const *_Env)
 
_CRTIMP int __cdecl _wsystem (_In_opt_z_ const wchar_t *_Command)
 
void __cdecl __security_init_cookie (void)
 
void __cdecl __security_check_cookie (_In_ uintptr_t _StackCookie)
 
 _CRT_OBSOLETE (LoadLibrary) intptr_t __cdecl _loaddll(_In_z_ char *_Filename)
 
 _CRT_OBSOLETE (FreeLibrary) int __cdecl _unloaddll(_In_ intptr_t _Handle)
 
 _CRT_OBSOLETE (GetProcAddress) int(__cdecl *__cdecl _getdllprocaddr(_In_ intptr_t _Handle
 
_In_opt_z_ char _In_ intptr_t _Ordinal (void)
 
 _CRT_NONSTDC_DEPRECATE (_cwait) _CRTIMP intptr_t __cdecl cwait(_Out_opt_ int *_TermStat
 
 _CRT_NONSTDC_DEPRECATE (_execl) _CRTIMP intptr_t __cdecl execl(_In_z_ const char *_Filename
 
_In_z_ const char _CRT_NONSTDC_DEPRECATE (_execle) _CRTIMP intptr_t __cdecl execle(_In_z_ const char *_Filename
 
_In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE (_execlp) _CRTIMP intptr_t __cdecl execlp(_In_z_ const char *_Filename
 
_In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE (_execlpe) _CRTIMP intptr_t __cdecl execlpe(_In_z_ const char *_Filename
 
_In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE (_execv) _CRTIMP intptr_t __cdecl execv(_In_z_ const char *_Filename
 
 _CRT_NONSTDC_DEPRECATE (_execve) _CRTIMP intptr_t __cdecl execve(_In_z_ const char *_Filename
 
 _CRT_NONSTDC_DEPRECATE (_execvp) _CRTIMP intptr_t __cdecl execvp(_In_z_ const char *_Filename
 
 _CRT_NONSTDC_DEPRECATE (_execvpe) _CRTIMP intptr_t __cdecl execvpe(_In_z_ const char *_Filename
 
 _CRT_NONSTDC_DEPRECATE (_spawnl) _CRTIMP intptr_t __cdecl spawnl(_In_ int
 
_In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE (_spawnle) _CRTIMP intptr_t __cdecl spawnle(_In_ int
 
_In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE (_spawnlp) _CRTIMP intptr_t __cdecl spawnlp(_In_ int
 
_In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE (_spawnlpe) _CRTIMP intptr_t __cdecl spawnlpe(_In_ int
 
_In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE (_spawnv) _CRTIMP intptr_t __cdecl spawnv(_In_ int
 
 _CRT_NONSTDC_DEPRECATE (_spawnve) _CRTIMP intptr_t __cdecl spawnve(_In_ int
 
 _CRT_NONSTDC_DEPRECATE (_spawnvp) _CRTIMP intptr_t __cdecl spawnvp(_In_ int
 
 _CRT_NONSTDC_DEPRECATE (_spawnvpe) _CRTIMP intptr_t __cdecl spawnvpe(_In_ int
 
 _CRT_NONSTDC_DEPRECATE (_getpid) _CRTIMP int __cdecl getpid(void)
 

Variables

uintptr_t __security_cookie
 
_In_opt_z_ char * _ProcedureName
 
_In_ intptr_t _ProcHandle
 
_In_ intptr_t _In_ int _Action
 
_In_z_ const char * _ArgList
 
_In_z_ const char *const _In_opt_z_ const char *const * _Env
 
_In_z_ const char * _Filename
 

Macro Definition Documentation

#define _CRT_SYSTEM_DEFINED
#define _CRT_TERMINATE_DEFINED
#define _CRT_WSYSTEM_DEFINED
#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 _WPROCESS_DEFINED
#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

Function Documentation

_CRTIMP __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 the is_task_cancellation_requested function, 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
204 {
205  throw task_canceled();
206 }
void __cdecl __security_check_cookie ( _In_ uintptr_t  _StackCookie)
void __cdecl __security_init_cookie ( void  )
_CRTIMP uintptr_t __cdecl _beginthread ( _In_   void__cdecl *_StartAddress)(void *,
_In_ unsigned  _StackSize,
_In_opt_ void _ArgList 
)
_CRTIMP uintptr_t __cdecl _beginthreadex ( _In_opt_ void _Security,
_In_ unsigned  _StackSize,
_In_   unsigned__stdcall *_StartAddress)(void *,
_In_opt_ void _ArgList,
_In_ unsigned  _InitFlag,
_Out_opt_ unsigned *  _ThrdAddr 
)
_CRTIMP void __cdecl _c_exit ( void  )
_CRTIMP void __cdecl _cexit ( void  )
_CRT_NONSTDC_DEPRECATE ( _cwait  )
_CRT_NONSTDC_DEPRECATE ( _execl  ) const
_In_z_ const char _CRT_NONSTDC_DEPRECATE ( _execle  ) const
_In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE ( _execlp  ) const
_In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE ( _execlpe  ) const
_In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE ( _execv  ) const
_CRT_NONSTDC_DEPRECATE ( _execve  ) const
_CRT_NONSTDC_DEPRECATE ( _execvp  ) const
_CRT_NONSTDC_DEPRECATE ( _execvpe  ) const
_CRT_NONSTDC_DEPRECATE ( _spawnl  )
_In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE ( _spawnle  )
_In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE ( _spawnlp  )
_In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE ( _spawnlpe  )
_In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _In_z_ const char _CRT_NONSTDC_DEPRECATE ( _spawnv  )
_CRT_NONSTDC_DEPRECATE ( _spawnve  )
_CRT_NONSTDC_DEPRECATE ( _spawnvp  )
_CRT_NONSTDC_DEPRECATE ( _spawnvpe  )
_CRT_NONSTDC_DEPRECATE ( _getpid  )
_CRT_OBSOLETE ( LoadLibrary  )
_CRT_OBSOLETE ( FreeLibrary  )
_CRT_OBSOLETE ( GetProcAddress  )
_CRTIMP intptr_t __cdecl _cwait ( _Out_opt_ int _TermStat,
_In_ intptr_t  _ProcHandle,
_In_ int  _Action 
)
_CRTIMP void __cdecl _endthread ( void  )
_CRTIMP void __cdecl _endthreadex ( _In_ unsigned  _Retval)
_CRTIMP intptr_t __cdecl _execl ( _In_z_ const char *  _Filename,
_In_z_ const char *  _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _execle ( _In_z_ const char *  _Filename,
_In_z_ const char *  _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _execlp ( _In_z_ const char *  _Filename,
_In_z_ const char *  _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _execlpe ( _In_z_ const char *  _Filename,
_In_z_ const char *  _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _execv ( _In_z_ const char *  _Filename,
_In_z_ const char *const *  _ArgList 
)
_CRTIMP intptr_t __cdecl _execve ( _In_z_ const char *  _Filename,
_In_z_ const char *const *  _ArgList,
_In_opt_z_ const char *const *  _Env 
)
_CRTIMP intptr_t __cdecl _execvp ( _In_z_ const char *  _Filename,
_In_z_ const char *const *  _ArgList 
)
_CRTIMP intptr_t __cdecl _execvpe ( _In_z_ const char *  _Filename,
_In_z_ const char *const *  _ArgList,
_In_opt_z_ const char *const *  _Env 
)
_CRTIMP int __cdecl _getpid ( void  )
_In_opt_z_ char _In_ intptr_t _Ordinal ( void  )
_CRTIMP intptr_t __cdecl _spawnl ( _In_ int  _Mode,
_In_z_ const char *  _Filename,
_In_z_ const char *  _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _spawnle ( _In_ int  _Mode,
_In_z_ const char *  _Filename,
_In_z_ const char *  _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _spawnlp ( _In_ int  _Mode,
_In_z_ const char *  _Filename,
_In_z_ const char *  _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _spawnlpe ( _In_ int  _Mode,
_In_z_ const char *  _Filename,
_In_z_ const char *  _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _spawnv ( _In_ int  _Mode,
_In_z_ const char *  _Filename,
_In_z_ const char *const *  _ArgList 
)
_CRTIMP intptr_t __cdecl _spawnve ( _In_ int  _Mode,
_In_z_ const char *  _Filename,
_In_z_ const char *const *  _ArgList,
_In_opt_z_ const char *const *  _Env 
)
_CRTIMP intptr_t __cdecl _spawnvp ( _In_ int  _Mode,
_In_z_ const char *  _Filename,
_In_z_ const char *const *  _ArgList 
)
_CRTIMP intptr_t __cdecl _spawnvpe ( _In_ int  _Mode,
_In_z_ const char *  _Filename,
_In_z_ const char *const *  _ArgList,
_In_opt_z_ const char *const *  _Env 
)
_CRTIMP intptr_t __cdecl _wexecl ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _wexecle ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _wexeclp ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _wexeclpe ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _wexecv ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t *const *  _ArgList 
)
_CRTIMP intptr_t __cdecl _wexecve ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t *const *  _ArgList,
_In_opt_z_ const wchar_t *const *  _Env 
)
_CRTIMP intptr_t __cdecl _wexecvp ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t *const *  _ArgList 
)
_CRTIMP intptr_t __cdecl _wexecvpe ( _In_z_ const wchar_t _Filename,
_In_z_ const wchar_t *const *  _ArgList,
_In_opt_z_ const wchar_t *const *  _Env 
)
_CRTIMP intptr_t __cdecl _wspawnl ( _In_ int  _Mode,
_In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _wspawnle ( _In_ int  _Mode,
_In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _wspawnlp ( _In_ int  _Mode,
_In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _wspawnlpe ( _In_ int  _Mode,
_In_z_ const wchar_t _Filename,
_In_z_ const wchar_t _ArgList,
  ... 
)
_CRTIMP intptr_t __cdecl _wspawnv ( _In_ int  _Mode,
_In_z_ const wchar_t _Filename,
_In_z_ const wchar_t *const *  _ArgList 
)
_CRTIMP intptr_t __cdecl _wspawnve ( _In_ int  _Mode,
_In_z_ const wchar_t _Filename,
_In_z_ const wchar_t *const *  _ArgList,
_In_opt_z_ const wchar_t *const *  _Env 
)
_CRTIMP intptr_t __cdecl _wspawnvp ( _In_ int  _Mode,
_In_z_ const wchar_t _Filename,
_In_z_ const wchar_t *const *  _ArgList 
)
_CRTIMP intptr_t __cdecl _wspawnvpe ( _In_ int  _Mode,
_In_z_ const wchar_t _Filename,
_In_z_ const wchar_t *const *  _ArgList,
_In_opt_z_ const wchar_t *const *  _Env 
)
_CRTIMP int __cdecl _wsystem ( _In_opt_z_ const wchar_t _Command)
_CRTIMP int __cdecl system ( _In_opt_z_ const char *  _Command)

Variable Documentation

uintptr_t __security_cookie
_In_ intptr_t _In_ int _Action
_In_z_ const char _In_z_ const char *const _In_opt_z_ const char *const * _Env
_In_opt_z_ char* _ProcedureName
_In_ intptr_t _ProcHandle