It's not allowed to launch another process (as far as 2016 doc goes):
https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019
"The functionality is not available in UWP apps. A UWP app cannot invoke
another UWP app or a desktop app."
---
mingw-w64-headers/crt/process.h | 4 ++++
mingw-w64-headers/crt/stdio.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/mingw-w64-headers/crt/process.h b/mingw-w64-headers/crt/process.h
index d96be28c..99204b89 100644
--- a/mingw-w64-headers/crt/process.h
+++ b/mingw-w64-headers/crt/process.h
@@ -65,6 +65,7 @@ extern "C" {
void __cdecl __MINGW_NOTHROW _c_exit(void);
_CRTIMP int __cdecl _getpid(void);
_CRTIMP intptr_t __cdecl _cwait(int *_TermStat,intptr_t _ProcHandle,int
_Action);
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
_CRTIMP intptr_t __cdecl _execl(const char *_Filename,const char
*_ArgList,...);
_CRTIMP intptr_t __cdecl _execle(const char *_Filename,const char
*_ArgList,...);
_CRTIMP intptr_t __cdecl _execlp(const char *_Filename,const char
*_ArgList,...);
@@ -119,6 +120,7 @@ extern "C" {
#define _CRT_WSYSTEM_DEFINED
_CRTIMP int __cdecl _wsystem(const wchar_t *_Command);
#endif
+#endif /* WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) */
void __cdecl __security_init_cookie(void);
#if (defined(_X86_) && !defined(__x86_64))
@@ -159,6 +161,7 @@ extern "C" {
#define WAIT_GRANDCHILD _WAIT_GRANDCHILD
intptr_t __cdecl cwait(int *_TermStat,intptr_t _ProcHandle,int _Action)
__MINGW_ATTRIB_DEPRECATED_MSVC2005;
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#ifdef __GNUC__
int __cdecl execl(const char *_Filename,const char *_ArgList,...)
__MINGW_ATTRIB_DEPRECATED_MSVC2005;
int __cdecl execle(const char *_Filename,const char *_ArgList,...)
__MINGW_ATTRIB_DEPRECATED_MSVC2005;
@@ -198,6 +201,7 @@ extern "C" {
_CRTIMP intptr_t __cdecl spawnvp(int,const char *_Filename,char *const
_ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
_CRTIMP intptr_t __cdecl spawnvpe(int,const char *_Filename,char *const
_ArgList[],char *const _Env[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
#endif
+#endif /* WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) */
#ifdef __cplusplus
}
diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index 00d3a1ff..07a663ed 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -1510,6 +1510,7 @@ void __cdecl __mingw_str_free(void *ptr);
#endif /* __MINGW_MBWC_CONVERT_DEFINED */
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#ifndef _WSPAWN_DEFINED
#define _WSPAWN_DEFINED
_CRTIMP intptr_t __cdecl _wspawnl(int _Mode,const wchar_t *_Filename,const
wchar_t *_ArgList,...);
@@ -1541,6 +1542,7 @@ void __cdecl __mingw_str_free(void *ptr);
_CRTIMP intptr_t __cdecl _spawnvp(int _Mode,const char *_Filename,const char
*const *_ArgList);
_CRTIMP intptr_t __cdecl _spawnvpe(int _Mode,const char *_Filename,const
char *const *_ArgList,const char *const *_Env);
#endif
+#endif /* WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) */
#ifdef __cplusplus
}
--
2.17.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public