xref: /reactos/sdk/include/ucrt/corecrt_wprocess.h (revision 04e0dc4a)
1 //
2 // corecrt_wprocess.h
3 //
4 //      Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // This file declares the wide character (wchar_t) process functionality, shared
7 // by <process.h> and <wchar.h>.
8 //
9 #pragma once
10 
11 #include <corecrt.h>
12 
13 #pragma warning(push)
14 #pragma warning(disable: _UCRT_DISABLED_WARNINGS)
15 _UCRT_DISABLE_CLANG_WARNINGS
16 
17 _CRT_BEGIN_C_HEADER
18 
19 
20 
21 #if _CRT_FUNCTIONS_REQUIRED
22     #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
23 
24         _DCRTIMP intptr_t __cdecl _wexecl(
25             _In_z_ wchar_t const* _FileName,
26             _In_z_ wchar_t const* _ArgList,
27             ...);
28 
29         _DCRTIMP intptr_t __cdecl _wexecle(
30             _In_z_ wchar_t const* _FileName,
31             _In_z_ wchar_t const* _ArgList,
32             ...);
33 
34         _DCRTIMP intptr_t __cdecl _wexeclp(
35             _In_z_ wchar_t const* _FileName,
36             _In_z_ wchar_t const* _ArgList,
37             ...);
38 
39         _DCRTIMP intptr_t __cdecl _wexeclpe(
40             _In_z_ wchar_t const* _FileName,
41             _In_z_ wchar_t const* _ArgList,
42             ...);
43 
44         _DCRTIMP intptr_t __cdecl _wexecv(
45             _In_z_ wchar_t const*        _FileName,
46             _In_z_ wchar_t const* const* _ArgList
47             );
48 
49         _DCRTIMP intptr_t __cdecl _wexecve(
50             _In_z_     wchar_t const*        _FileName,
51             _In_z_     wchar_t const* const* _ArgList,
52             _In_opt_z_ wchar_t const* const* _Env
53             );
54 
55         _DCRTIMP intptr_t __cdecl _wexecvp(
56             _In_z_ wchar_t const*        _FileName,
57             _In_z_ wchar_t const* const* _ArgList
58             );
59 
60         _DCRTIMP intptr_t __cdecl _wexecvpe(
61             _In_z_     wchar_t const*        _FileName,
62             _In_z_     wchar_t const* const* _ArgList,
63             _In_opt_z_ wchar_t const* const* _Env
64             );
65 
66         _DCRTIMP intptr_t __cdecl _wspawnl(
67             _In_   int            _Mode,
68             _In_z_ wchar_t const* _FileName,
69             _In_z_ wchar_t const* _ArgList,
70             ...);
71 
72         _DCRTIMP intptr_t __cdecl _wspawnle(
73             _In_   int            _Mode,
74             _In_z_ wchar_t const* _FileName,
75             _In_z_ wchar_t const* _ArgList,
76             ...);
77 
78         _DCRTIMP intptr_t __cdecl _wspawnlp(
79             _In_   int            _Mode,
80             _In_z_ wchar_t const* _FileName,
81             _In_z_ wchar_t const* _ArgList,
82             ...);
83 
84         _DCRTIMP intptr_t __cdecl _wspawnlpe(
85             _In_   int            _Mode,
86             _In_z_ wchar_t const* _FileName,
87             _In_z_ wchar_t const* _ArgList,
88             ...);
89 
90         _DCRTIMP intptr_t __cdecl _wspawnv(
91             _In_   int                   _Mode,
92             _In_z_ wchar_t const*        _FileName,
93             _In_z_ wchar_t const* const* _ArgList
94             );
95 
96         _DCRTIMP intptr_t __cdecl _wspawnve(
97             _In_       int                   _Mode,
98             _In_z_     wchar_t const*        _FileName,
99             _In_z_     wchar_t const* const* _ArgList,
100             _In_opt_z_ wchar_t const* const* _Env
101             );
102 
103         _DCRTIMP intptr_t __cdecl _wspawnvp(
104             _In_   int                   _Mode,
105             _In_z_ wchar_t const*        _FileName,
106             _In_z_ wchar_t const* const* _ArgList
107             );
108 
109         _DCRTIMP intptr_t __cdecl _wspawnvpe(
110             _In_       int                   _Mode,
111             _In_z_     wchar_t const*        _FileName,
112             _In_z_     wchar_t const* const* _ArgList,
113             _In_opt_z_ wchar_t const* const* _Env
114             );
115 
116         _DCRTIMP int __cdecl _wsystem(
117             _In_opt_z_ wchar_t const* _Command
118             );
119 
120     #endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
121 #endif // _CRT_FUNCTIONS_REQUIRED
122 
123 
124 
125 _CRT_END_C_HEADER
126 _UCRT_RESTORE_CLANG_WARNINGS
127 #pragma warning(pop) // _UCRT_DISABLED_WARNINGS
128