[Mingw-w64-public] [PATCH] d3d11.idl: add the necessary interfaces to use the D3D11 video decoder

2015-05-11 Thread Steve Lhomme
--- These COM classes are needed by VLC --- mingw-w64-headers/direct-x/include/d3d11.h | 811 +++ mingw-w64-headers/direct-x/include/d3d11.idl | 199 +++ 2 files changed, 1010 insertions(+) diff --git a/mingw-w64-headers/direct-x/include/d3d11.h

Re: [Mingw-w64-public] [PATCH] d3d11.idl: add the necessary interfaces to use the D3D11 video decoder

2015-05-11 Thread Steve Lhomme
Discard this patch, I forgot some methods between the ones necessary and it doesn't work properly. On Mon, May 11, 2015 at 1:43 PM, Steve Lhomme rob...@videolabs.io wrote: --- These COM classes are needed by VLC --- mingw-w64-headers/direct-x/include/d3d11.h | 811

[Mingw-w64-public] [PATCH] d3d11: add the basic interfaces to enable video decoding

2015-05-11 Thread Steve Lhomme
--- mingw-w64-headers/direct-x/include/d3d11.h | 939 +++ mingw-w64-headers/direct-x/include/d3d11.idl | 201 ++ 2 files changed, 1140 insertions(+) diff --git a/mingw-w64-headers/direct-x/include/d3d11.h b/mingw-w64-headers/direct-x/include/d3d11.h index

Re: [Mingw-w64-public] [PATCH] add dxgidebug.idl

2015-05-14 Thread Steve Lhomme
should not have such requirements since the goal is to run on a functional Windows. But it seems it's tied to Wine for definitions. Anyway, let us way for Wine's review on this. Regards, Kai 2015-05-12 16:40 GMT+02:00 Steve Lhomme rob...@videolabs.io: --- mingw-w64-headers/Makefile.am

[Mingw-w64-public] [PATCH] add dxgidebug.idl

2015-05-12 Thread Steve Lhomme
\ @HAVE_WIDL_TRUE@ include/filter.idl \ diff --git a/mingw-w64-headers/direct-x/include/dxgidebug.idl b/mingw-w64-headers/direct-x/include/dxgidebug.idl new file mode 100644 index 000..94f57da --- /dev/null +++ b/mingw-w64-headers/direct-x/include/dxgidebug.idl @@ -0,0 +1,44 @@ +/* + * Copyright 2015 Steve

[Mingw-w64-public] [PATCH 2/2] crt: build libraries using our own headers

2018-11-08 Thread Steve Lhomme
don't depend on possibly outdated system ones --- mingw-w64-crt/Makefile.am | 220 +++--- 1 file changed, 110 insertions(+), 110 deletions(-) diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index 68c966e8..4a4ce5a2 100644 ---

[Mingw-w64-public] [PATCH 1/2] crt: use our own CRT headers to build

2018-11-08 Thread Steve Lhomme
The system ones may be outdated. --- mingw-w64-crt/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index e27557fc..68c966e8 100644 --- a/mingw-w64-crt/Makefile.am +++ b/mingw-w64-crt/Makefile.am @@ -57,7 +57,7

Re: [Mingw-w64-public] [PATCH 2/2] crt: build libraries using our own headers

2018-11-08 Thread Steve Lhomme
On 08/11/2018 14:03, Martin Storsjö wrote: On Thu, 8 Nov 2018, Steve Lhomme wrote: don't depend on possibly outdated system ones --- mingw-w64-crt/Makefile.am | 220 +++--- 1 file changed, 110 insertions(+), 110 deletions(-) diff --git a/mingw-w64-crt

[Mingw-w64-public] [PATCH v2] windowsapp: add gamemode.dll APIs

2018-11-08 Thread Steve Lhomme
--- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/lib-common/gamemode.def | 7 +++ mingw-w64-crt/lib-common/windowsapp.mri | 1 + mingw-w64-crt/lib32/gamemode.def | 7 +++ mingw-w64-headers/include/expandedresources.h | 20

Re: [Mingw-w64-public] [PATCH 2/2] crt: build libraries using our own headers

2018-11-08 Thread Steve Lhomme
On 08/11/2018 14:36, Jacek Caban wrote: On 11/08/2018 02:27 PM, Steve Lhomme wrote: In any case it doesn't seem right to rely on the system to build something that will overwrite it in the end. You change crt module, which will not override system headers (maybe system crt, if that's how you

Re: [Mingw-w64-public] [PATCH] windowsapp: add gamemode.dll APIs

2018-11-08 Thread Steve Lhomme
On 08/11/2018 14:24, Jacek Caban wrote: On 11/08/2018 02:07 PM, Martin Storsjö wrote: On Thu, 8 Nov 2018, Steve Lhomme wrote: The 3 calls defined in expandedresources.h are supposed to be linked with windowsapp.lib but actually use gamemode.dll. The DLL should be available on Win32 as well

Re: [Mingw-w64-public] [PATCH] windowsapp: add gamemode.dll APIs

2018-11-08 Thread Steve Lhomme
On 08/11/2018 14:19, Liu Hao wrote: 在 2018/11/8 下午8:39, Steve Lhomme 写道: diff --git a/mingw-w64-crt/lib32/gamemode.def b/mingw-w64-crt/lib32/gamemode.def new file mode 100644 index ..d908c1d2 --- /dev/null +++ b/mingw-w64-crt/lib32/gamemode.def @@ -0,0 +1,7 @@ +LIBRARY gamemode.dll

Re: [Mingw-w64-public] [PATCH v2] windowsapp: add gamemode.dll APIs

2018-11-12 Thread Steve Lhomme
On 11/11/2018 19:43, Jacek Caban wrote: Hi Steve, On 11/8/18 3:59 PM, Steve Lhomme wrote: ---   mingw-w64-crt/Makefile.am |  1 +   mingw-w64-crt/lib-common/gamemode.def |  7 +++   mingw-w64-crt/lib-common/windowsapp.mri   |  1 +   mingw-w64-crt/lib32

[Mingw-w64-public] [PATCH] Add -Wno-expansion-to-defined when building with -Wextra

2018-11-08 Thread Steve Lhomme
Otherwise it leads to a lot of annoying warnings in intrin-impl.h like: #if __INTRINSIC_PROLOG(__stosd) ^~~ ./../mingw-w64-headers/include/psdk_inc/intrin-impl.h:1622:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]

[Mingw-w64-public] [PATCH] make some file APIs visible to Windows Store apps

2019-03-04 Thread Steve Lhomme
--- mingw-w64-headers/include/fileapi.h | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mingw-w64-headers/include/fileapi.h b/mingw-w64-headers/include/fileapi.h index eb7ccc9a..fafd6fc5 100644 --- a/mingw-w64-headers/include/fileapi.h +++

Re: [Mingw-w64-public] [PATCH] make some file APIs visible to Windows Store apps

2019-03-04 Thread Steve Lhomme
This patch just moves some functions to be available on desktop AND winstore apps. It may be simpler to remove the #if since they are available everywhere. I'm not too sure wheather WINSTORECOMPATimplies compiling them in the winstorecompat library. On 3/4/2019 2:49 PM, Steve Lhomme wrote

[Mingw-w64-public] [PATCH] OpenProcess is available for windows store on Windows 10

2019-03-14 Thread Steve Lhomme
--- mingw-w64-headers/include/processthreadsapi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/processthreadsapi.h b/mingw-w64-headers/include/processthreadsapi.h index 87f7a0b5..717513e6 100644 ---

Re: [Mingw-w64-public] [PATCH] have the mingw64 pkg-config installed with cmake

2019-03-11 Thread Steve Lhomme
Ah, I wasn't sure it was the right place. Thanks. On 3/11/2019 10:05 AM, Liu Hao wrote: 在 2019/3/11 下午4:53, Steve Lhomme 写道: when running under mingw64.exe/mingw32.exe the pathes from the environment are transformed into Windows pathes. As a result PKG_CONFIG_PATH because a Windows path. When

Re: [Mingw-w64-public] [PATCH] OpenProcess is available for windows store on Windows 10

2019-03-15 Thread Steve Lhomme
Hi, On 3/14/2019 4:17 PM, Liu Hao wrote: 在 2019/3/14 17:26, Steve Lhomme 写道: --- mingw-w64-headers/include/processthreadsapi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/processthreadsapi.h b/mingw-w64-headers/include

Re: [Mingw-w64-public] [PATCH] winapifamily: fix check for WINAPI_FAMILY_PARTITION(WINAPI_FAMILY_DESKTOP_APP)

2019-12-12 Thread Steve Lhomme
Hi, On 2019-12-12 22:13, Martin Storsjö wrote: On Thu, 12 Dec 2019, Steve Lhomme wrote: WINAPI_FAMILY_DESKTOP_APP is (WINAPI_PARTITION_DESKTOP|WINAPI_PARTITION_APP) (ie available for desktop and store apps) The current macro results in: (WINAPI_FAMILY & (WINAPI_PARTITION_DES

Re: [Mingw-w64-public] [PATCH] fileapi: GetTempPath is available in desktop and app targets

2019-12-13 Thread Steve Lhomme
On 2019-12-13 8:29, Martin Storsjö wrote: On Fri, 13 Dec 2019, Steve Lhomme wrote: On 2019-12-12 22:47, Martin Storsjö wrote: On Thu, 12 Dec 2019, Steve Lhomme wrote: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppathw https://docs.microsoft.com/en-us

Re: [Mingw-w64-public] [PATCH 1/2] headers: Fix a use of WINAPI_FAMILY_PARTITION in fileapi.h

2019-12-12 Thread Steve Lhomme
LGTM On 2019-12-12 22:47, Martin Storsjö wrote: WINAPI_FAMILY_PARTITION is only supposed to be used with WINAPI_PARTITION_* constants, not with WINAPI_FAMILY_*_APP constants. However, all the functions in this block actually are available for WINAPI_PARTITION_APP already since windows 8.0, so

Re: [Mingw-w64-public] [PATCH] fileapi: GetTempPath is available in desktop and app targets

2019-12-12 Thread Steve Lhomme
On 2019-12-12 22:47, Martin Storsjö wrote: On Thu, 12 Dec 2019, Steve Lhomme wrote: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppathw https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppatha --- mingw-w64-headers/include/fileapi.h

Re: [Mingw-w64-public] [PATCH] winapifamily: fix check for WINAPI_FAMILY_PARTITION(WINAPI_FAMILY_DESKTOP_APP)

2019-12-13 Thread Steve Lhomme
On 2019-12-13 8:39, Martin Storsjö wrote: On Fri, 13 Dec 2019, Steve Lhomme wrote: Hi, On 2019-12-12 22:13, Martin Storsjö wrote: On Thu, 12 Dec 2019, Steve Lhomme wrote: WINAPI_FAMILY_DESKTOP_APP is (WINAPI_PARTITION_DESKTOP|WINAPI_PARTITION_APP) (ie available for desktop and store apps

[Mingw-w64-public] [PATCH] winapifamily: fix check for WINAPI_FAMILY_PARTITION(WINAPI_FAMILY_DESKTOP_APP)

2019-12-12 Thread Steve Lhomme
WINAPI_FAMILY_DESKTOP_APP is (WINAPI_PARTITION_DESKTOP|WINAPI_PARTITION_APP) (ie available for desktop and store apps) The current macro results in: (WINAPI_FAMILY & (WINAPI_PARTITION_DESKTOP|WINAPI_PARTITION_APP)) == (WINAPI_PARTITION_DESKTOP|WINAPI_PARTITION_APP) Where WINAPI_FAMILY is either

[Mingw-w64-public] [PATCH 1/5] headers: add dxvahd.idl

2020-03-04 Thread Steve Lhomme
Use the generated dxvahd.h --- mingw-w64-headers/Makefile.am| 1 + mingw-w64-headers/include/dxvahd.h | 841 ++- mingw-w64-headers/include/dxvahd.idl | 427 ++ 3 files changed, 990 insertions(+), 279 deletions(-) create mode 100644

[Mingw-w64-public] [PATCH 5/5] headers: use the more generic STDMETHODCALLTYPE for the callbacks

2020-03-04 Thread Steve Lhomme
--- mingw-w64-headers/include/dxvahd.h | 41 +++ mingw-w64-headers/include/dxvahd.idl | 42 +++- 2 files changed, 34 insertions(+), 49 deletions(-) diff --git a/mingw-w64-headers/include/dxvahd.h b/mingw-w64-headers/include/dxvahd.h index

[Mingw-w64-public] [PATCH 4/5] headers: remove unknown PDXVAHD_STREAM_STATE_ASPECT_RATIO_DATA

2020-03-04 Thread Steve Lhomme
It doesn't seem to be a thing. That's the only local structure that has such a pointer defined. See https://docs.microsoft.com/en-us/windows/win32/api/dxvahd/ns-dxvahd-dxvahd_stream_state_aspect_ratio_data --- mingw-w64-headers/include/dxvahd.h | 1 - mingw-w64-headers/include/dxvahd.idl | 2

[Mingw-w64-public] [PATCH 3/5] headers: dxvahd API is only available on desktop

2020-03-04 Thread Steve Lhomme
See https://docs.microsoft.com/en-us/windows/win32/api/dxvahd/nf-dxvahd-dxvahd_createdevice --- mingw-w64-headers/include/dxvahd.h | 4 mingw-w64-headers/include/dxvahd.idl | 4 2 files changed, 8 insertions(+) diff --git a/mingw-w64-headers/include/dxvahd.h

[Mingw-w64-public] [PATCH 2/5] headers: reorder dxvahd methods

2020-03-04 Thread Steve Lhomme
Tested with succesfully with VLC. --- mingw-w64-headers/include/dxvahd.h | 142 +-- mingw-w64-headers/include/dxvahd.idl | 12 +-- 2 files changed, 77 insertions(+), 77 deletions(-) diff --git a/mingw-w64-headers/include/dxvahd.h b/mingw-w64-headers/include/dxvahd.h

Re: [Mingw-w64-public] [PATCH 1/5] headers: add dxvahd.idl

2020-03-10 Thread Steve Lhomme
, On 04.03.2020 15:27, Steve Lhomme wrote: Use the generated dxvahd.h ---   mingw-w64-headers/Makefile.am    |   1 +   mingw-w64-headers/include/dxvahd.h   | 841 ++-   mingw-w64-headers/include/dxvahd.idl | 427 ++   3 files changed, 990 insertions(+), 279 deletions

Re: [Mingw-w64-public] [PATCH 5/5] headers: use the more generic STDMETHODCALLTYPE for the callbacks

2020-03-11 Thread Steve Lhomme
Hi, On 2020-03-10 20:26, Jacek Caban wrote: Hi Steve, I pushed first 4 patches. I'm not sure about this one. CALLBACK is also a generic macro in win32 world. What I don't know is why is the define in this header. It should be defined in minwindef.h. I'd suggest to simply remove the define

[Mingw-w64-public] [PATCH] headers: add dxvahd.idl

2020-03-10 Thread Steve Lhomme
- reorder methods so they actually work (tested with VLC). https://code.videolan.org/videolan/vlc/-/blob/master/modules/video_output/win32/direct3d9.c - Rreplace dxvahd.h with the generated version. - only make the dxvahd API available on desktop See

Re: [Mingw-w64-public] [PATCH 1/5] headers: add dxvahd.idl

2020-03-10 Thread Steve Lhomme
On 2020-03-10 11:31, Jacek Caban wrote: On 10/03/2020 07:34, Steve Lhomme wrote: You mean squash all 5 patches into one or just the first two ? In general I prefer to split commits so if something breaks it's easier to know what is wrong in a particular commit and possibly revert

[Mingw-w64-public] [PATCH 3/6] winpthreads: always return 0 in pthread_check() if the thread ended is 0

2020-04-08 Thread Steve Lhomme
The code does the same but in a cleaner way, making room for the next patch. --- mingw-w64-libraries/winpthreads/src/sched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mingw-w64-libraries/winpthreads/src/sched.c b/mingw-w64-libraries/winpthreads/src/sched.c index

[Mingw-w64-public] [PATCH 6/6] winpthreads: don't call SetThreadContext in winstore builds

2020-04-08 Thread Steve Lhomme
The call is forbidden. Hopefully the deferred Canceling mechanism below will work and this is not needed. --- mingw-w64-libraries/winpthreads/src/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw-w64-libraries/winpthreads/src/thread.c

[Mingw-w64-public] [PATCH 4/6] winpthreads: simplify the handle validity in pthread_check()

2020-04-08 Thread Steve Lhomme
--- mingw-w64-libraries/winpthreads/src/sched.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mingw-w64-libraries/winpthreads/src/sched.c b/mingw-w64-libraries/winpthreads/src/sched.c index bdd4301b..df3c60ea 100644 --- a/mingw-w64-libraries/winpthreads/src/sched.c

[Mingw-w64-public] [PATCH 5/6] winpthreads: do not call GetHandleInformation in winstore build

2020-04-08 Thread Steve Lhomme
The call is forbidden on non-desktop apps. The check on INVALID_HANDLE_VALUE should be good enough. --- mingw-w64-libraries/winpthreads/src/misc.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mingw-w64-libraries/winpthreads/src/misc.h b/mingw-w64-libraries/winpthreads/src/misc.h

[Mingw-w64-public] [PATCH 1/6] winpthreads: simplify the USE_VEH_FOR_MSC_SETTHREADNAME check

2020-04-08 Thread Steve Lhomme
When compiling with other compilers than MSVC, we always use the code relying on USE_VEH_FOR_MSC_SETTHREADNAME. The __try/__except check code is not modified as it relies on internal MSVC dialect. With MSVC either USE_VEH_FOR_MSC_SETTHREADNAME was set but that code wasn't use anyway (unchanged)

[Mingw-w64-public] [PATCH 2/6] winpthreads: do not use the XXXExceptionHandler API in winstore builds

2020-04-08 Thread Steve Lhomme
Calling RemoveVectoredExceptionHandler()/AddVectoredExceptionHandler() is forbidden in non-desktop apps. https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-addvectoredexceptionhandler

[Mingw-w64-public] [PATCH] Add the IApplicationData2 storage interface

2020-04-08 Thread Steve Lhomme
It allows getting the LocalCacheFolder https://docs.microsoft.com/en-us/uwp/api/windows.storage.applicationdata.localcachefolde --- mingw-w64-headers/include/windows.storage.h | 114 ++ mingw-w64-headers/include/windows.storage.idl | 5 + 2 files changed, 119 insertions(+)

Re: [Mingw-w64-public] [PATCH] Add the IApplicationData2 storage interface

2020-04-10 Thread Steve Lhomme
I had a lot of trouble generating the .h The widl I'm using would not recognize the declarations in namespaces. So I put the declerations outside and it kinda worked. Using the proper namespace and removing a few things works. But then the COBJMACRO API calls are quite different (and ugly)

[Mingw-w64-public] [PATCH 2/5] crt: use consistent end of line (LF) in api-ms-win-*.def files

2020-04-10 Thread Steve Lhomme
--- .../api-ms-win-core-console-l1-1-0.def| 36 +-- .../lib32/api-ms-win-core-console-l1-1-0.def | 36 +-- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/mingw-w64-crt/lib-common/api-ms-win-core-console-l1-1-0.def

[Mingw-w64-public] [PATCH 5/5] crt: add new found API entries api-ms-win-*.def

2020-04-10 Thread Steve Lhomme
The parameters size in lib32 were generated from values found in other .def files of lib32. --- .../lib-common/api-ms-win-core-com-l1-1-1.def | 15 + .../api-ms-win-core-datetime-l1-1-1.def | 4 ++ .../api-ms-win-core-datetime-l1-1-2.def | 6 ++

[Mingw-w64-public] [PATCH 4/5] crt: remove GetFileVersionInfoSizeW/GetFileVersionInfoW from version-l1-1-1

2020-04-10 Thread Steve Lhomme
This function doesn't exist on my system and is not listed in the mincore doc: https://docs.microsoft.com/en-us/windows/win32/apiindex/windows-81-api-sets Only the xxxEx variants exist --- mingw-w64-crt/lib-common/api-ms-win-core-version-l1-1-1.def | 2 --

[Mingw-w64-public] [PATCH 3/5] crt: reorder api-ms-win-*.def files in alphanumerical order

2020-04-10 Thread Steve Lhomme
--- .../api-ms-win-core-file-ansi-l2-1-0.def | 2 +- .../api-ms-win-core-file-l1-2-1.def | 22 +-- .../lib-common/api-ms-win-core-io-l1-1-1.def | 4 ++-- .../api-ms-win-core-processthreads-l1-1-0.def | 2 +- .../lib-common/api-ms-win-crt-time-l1-1-0.def | 16

[Mingw-w64-public] [PATCH 1/5] crt: use consistent format for the library name in api-ms-win-*.def files

2020-04-10 Thread Steve Lhomme
--- mingw-w64-crt/lib-common/api-ms-win-core-comm-l1-1-0.def | 4 +++- mingw-w64-crt/lib-common/api-ms-win-core-console-l1-1-0.def | 4 +++- mingw-w64-crt/lib-common/api-ms-win-core-datetime-l1-1-0.def | 4 +++- .../lib-common/api-ms-win-core-psapi-ansi-l1-1-0.def | 2 +-

Re: [Mingw-w64-public] [PATCH 3/6] winpthreads: always return 0 in pthread_check() if the thread ended is 0

2020-04-10 Thread Steve Lhomme
Hi, On 2020-04-09 15:49, Liu Hao wrote: 在 2020/4/8 23:14, Steve Lhomme 写道: The code does the same but in a cleaner way, making room for the next patch. --- mingw-w64-libraries/winpthreads/src/sched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mingw-w64

Re: [Mingw-w64-public] [PATCH 3/6] winpthreads: always return 0 in pthread_check() if the thread ended is 0

2020-04-10 Thread Steve Lhomme
Hi (agin) On 2020-04-09 15:49, Liu Hao wrote: 在 2020/4/8 23:14, Steve Lhomme 写道: The code does the same but in a cleaner way, making room for the next patch. --- mingw-w64-libraries/winpthreads/src/sched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mingw-w64

[Mingw-w64-public] [PATCH] headers: move the C++ check for interlocked API

2020-04-16 Thread Steve Lhomme
The code is blocked the same way as before. This avoids a warning with clang: ../mingw-w64/mingw-w64-headers/include/winbase.h:3088:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if

[Mingw-w64-public] [PATCH] crt: add more DLLs to windowsapp

2020-04-16 Thread Steve Lhomme
There are many DLLs with their API entries listed by MS that were no linkable yet using -lwindowsapp as recommended for apps the can run on all types of devices. https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis --- mingw-w64-crt/Makefile.am | 71

[Mingw-w64-public] [PATCH 1/2] headers: allow win8 path API in winstore builds

2020-04-20 Thread Steve Lhomme
All of the entries are allowed https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-path-l1-1-0dll --- mingw-w64-headers/include/pathcch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw-w64-headers/include/pathcch.h

[Mingw-w64-public] [PATCH 2/2] headers: allow some firmware APIs' in winstore builds

2020-04-20 Thread Steve Lhomme
See https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-firmware-l1-1-0dll --- mingw-w64-headers/include/winbase.h | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/mingw-w64-headers/include/winbase.h

Re: [Mingw-w64-public] [PATCH v3 1/9] headers: crt: allow blocking some APIs in winstore builds

2020-04-21 Thread Steve Lhomme
I only sent the first patch that changed. 2 to 9 patches are unchanged. On 2020-04-21 7:14, Steve Lhomme wrote: Based on this documentation some APIs are not allowed in UWP builds https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs

[Mingw-w64-public] [PATCH v3 1/9] headers: crt: allow blocking some APIs in winstore builds

2020-04-20 Thread Steve Lhomme
Based on this documentation some APIs are not allowed in UWP builds https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 The documentation is old and may not apply to Win10 but it's still the one listed for UCRT compatibility :

[Mingw-w64-public] [PATCH] crt: add a dummy RtlAddFunctionTable when linking with windowsapp

2020-04-21 Thread Steve Lhomme
windowsapp is meant to replace kernel32, user32, shell32, etc. These older libraries should be used with it to avoid linking to entries that should not be used in that context (apps working on all win10 devices) https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis When linking with just

Re: [Mingw-w64-public] [PATCH v3 1/6] headers: crt: include winapifamily in corecrt.h

2020-04-19 Thread Steve Lhomme
On 2020-04-18 15:18, Jacek Caban wrote: On 18.04.2020 14:51, Liu Hao wrote: 在 2020/4/17 20:25, Steve Lhomme 写道: So we can restrict some C runtime APIs based on the target family. Based on this documentation some APIs are not allowed in UWP builds https://docs.microsoft.com/en-us/cpp/cppcx/crt

[Mingw-w64-public] [PATCH v2 3/9] headers: crt: disable cwait/_cwait in winstore builds

2020-04-20 Thread Steve Lhomme
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 "These functions are used to read and write directly from and to the console. UWP apps are GUI only; they

[Mingw-w64-public] [PATCH v2 7/9] headers: crt: hide some pipe API's in winstore builds

2020-04-20 Thread Steve Lhomme
It's not allowed (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 "Pipe functionality is not available to UWP apps." --- mingw-w64-headers/crt/io.h| 2 ++ mingw-w64-headers/crt/stdio.h | 2 ++ 2

[Mingw-w64-public] [PATCH v2 1/9] headers: crt: allow blocking some APIs in winstore builds

2020-04-20 Thread Steve Lhomme
Based on this documentation some APIs are not allowed in UWP builds https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 The documentation is old and may not apply to Win10 but it's still the one listed for UCRT compatibility :

[Mingw-w64-public] [PATCH v2 6/9] headers: crt: disable _wctype global variable in winstore builds

2020-04-20 Thread Steve Lhomme
It's not allowed (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 "Multi-byte strings are not supported in UWP apps." --- mingw-w64-headers/crt/ctype.h | 2 +- mingw-w64-headers/crt/wchar.h | 4

[Mingw-w64-public] [PATCH v2 8/9] headers: crt: disable some drive API's in winstore builds

2020-04-20 Thread Steve Lhomme
It's not allowed (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 "These functions are obsolete or are not thread-safe." "Not available." --- mingw-w64-headers/crt/direct.h | 2 ++

[Mingw-w64-public] [PATCH v2 2/9] headers: crt: disable process APIs in winstore builds

2020-04-20 Thread Steve Lhomme
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-public] [PATCH v2 5/9] headers: crt: disable some character APIs in winstore builds

2020-04-20 Thread Steve Lhomme
They are not allowed (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 "Multi-byte strings are not supported in Windows 8.x Store apps." "Multi-byte strings are not supported in UWP apps." ---

[Mingw-w64-public] [PATCH v2 9/9] headers: crt: move __stdio_common_v[sf]wprintf_p out of _WSTDIO_DEFINED

2020-04-20 Thread Steve Lhomme
It's not defined in stdio.h --- mingw-w64-headers/crt/wchar.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mingw-w64-headers/crt/wchar.h b/mingw-w64-headers/crt/wchar.h index 341e2a09..18e618d3 100644 --- a/mingw-w64-headers/crt/wchar.h +++

[Mingw-w64-public] [PATCH v2 4/9] headers: crt: forbid deprecated DLLs APIs in winstore builds

2020-04-20 Thread Steve Lhomme
They are not allowed: https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 "These were obsolete functions in previous CRT versions. Also, user cannot load DLLs except from those in the same application package." ---

[Mingw-w64-public] [PATCH] headers: add hide pseudo console API's in winstore builds

2020-04-20 Thread Steve Lhomme
The rest of the APIs are available, only the pseudo console APIs are not. This reverts wincon.h to the b7012ccbf256a2550cfc31e1d7669abe12e01f1c state by enabling everything apart from the pseudo console. GetConsoleOutputCP is available, in addition to winstorecompat

Re: [Mingw-w64-public] [PATCH] headers: add hide pseudo console API's in winstore builds

2020-04-20 Thread Steve Lhomme
the "add" in the title shouldn't be there. On 2020-04-20 8:48, Steve Lhomme wrote: The rest of the APIs are available, only the pseudo console APIs are not. This reverts wincon.h to the b7012ccbf256a2550cfc31e1d7669abe12e01f1c state by enabling everything apart from the pseu

Re: [Mingw-w64-public] [PATCH v2 1/9] headers: crt: allow blocking some APIs in winstore builds

2020-04-20 Thread Steve Lhomme
On 2020-04-20 15:54, Liu Hao wrote: 在 2020/4/20 14:45, Steve Lhomme 写道: Based on this documentation some APIs are not allowed in UWP builds https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 The documentation is old and may

[Mingw-w64-public] [PATCH 21/37] headers: allow DebugBreak in winstore builds

2020-04-15 Thread Steve Lhomme
Available in api-ms-win-core-debug-l1-1-0.dll : https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis --- mingw-w64-headers/include/debugapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/debugapi.h b/mingw-w64-headers/include/debugapi.h

[Mingw-w64-public] [PATCH 14/37] headers: add more file API's available in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getvolumeinformationbyhandlew https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getlongpathnamea https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettempfilenamea

[Mingw-w64-public] [PATCH 23/37] headers: forbid the use of WindowsInspectString in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winstring/nf-winstring-windowsinspectstring --- mingw-w64-headers/include/winstring.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw-w64-headers/include/winstring.h b/mingw-w64-headers/include/winstring.h index 76131d86..d3febc47

[Mingw-w64-public] [PATCH 07/37] headers: allow Beep in winstore apps

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/utilapiset/nf-utilapiset-beep --- mingw-w64-headers/include/utilapiset.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw-w64-headers/include/utilapiset.h b/mingw-w64-headers/include/utilapiset.h index f418ecc9..f08f3e1b 100644 ---

[Mingw-w64-public] [PATCH 37/37] headers: allow GetSystemPowerStatus in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getsystempowerstatus --- mingw-w64-headers/include/winbase.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/winbase.h b/mingw-w64-headers/include/winbase.h index

[Mingw-w64-public] [PATCH 28/37] headers: allow some tracing API's in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-opentracew https://docs.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-enabletraceex https://docs.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-enumeratetraceguidsex

[Mingw-w64-public] [PATCH 33/37] headers: allow GetSystemTimes in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-processthreads-l1-1-2dll --- mingw-w64-headers/include/winbase.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/winbase.h b/mingw-w64-headers/include/winbase.h

[Mingw-w64-public] [PATCH 29/37] headers: add SetThreadInformation to winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-processthreads-l1-1-2dll --- mingw-w64-headers/include/winbase.h | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/mingw-w64-headers/include/winbase.h

[Mingw-w64-public] [PATCH 18/37] headers: add process API's allowed in winstore builds

2020-04-15 Thread Steve Lhomme
And related structures https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocessinformation https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setprocessinformation

[Mingw-w64-public] [PATCH 30/37] headers: allow SetFileCompletionNotificationModes in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setfilecompletionnotificationmodes --- mingw-w64-headers/include/winbase.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mingw-w64-headers/include/winbase.h

[Mingw-w64-public] [PATCH 26/37] headers: allow GetConsoleOutputCP in winstore builds

2020-04-15 Thread Steve Lhomme
found in api-ms-win-core-console-l1-1-0.dll https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-console-l1-1-0dll --- mingw-w64-headers/include/wincon.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mingw-w64-headers/include/wincon.h

[Mingw-w64-public] [PATCH 01/37] headers: hide most of the file version API in winstore builds

2020-04-15 Thread Steve Lhomme
VerLanguageName and VerQueryValue are available https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis --- mingw-w64-headers/include/winver.h | 5 + 1 file changed, 5 insertions(+) diff --git a/mingw-w64-headers/include/winver.h b/mingw-w64-headers/include/winver.h index

[Mingw-w64-public] [PATCH 02/37] headers: hide CreateFileW/GetFileSize in winstore builds

2020-04-15 Thread Steve Lhomme
These calls are not available in UWP apps https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfilesize --- mingw-w64-headers/include/fileapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[Mingw-w64-public] [PATCH 31/37] headers: allow Get/SetThreadErrorMode in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getthreaderrormode https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setthreaderrormode --- mingw-w64-headers/include/winbase.h | 16 1 file changed, 8

[Mingw-w64-public] [PATCH 34/37] headers: add CreateSemaphoreA/CreateSemaphoreExA in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-synch-ansi-l1-1-0dll --- mingw-w64-headers/include/winbase.h | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mingw-w64-headers/include/winbase.h

[Mingw-w64-public] [PATCH 15/37] headers: add some tracing API's allowed in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-controltracea https://docs.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-starttracea https://docs.microsoft.com/en-us/windows/win32/api/evntrace/nf-evntrace-registertraceguidsa ---

[Mingw-w64-public] [PATCH 06/37] headers: allow some Memory API's in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-getlargepageminimum https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-getprocessworkingsetsizeex https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-getwritewatch

[Mingw-w64-public] [PATCH 36/37] headers: allow GetComputerName/SetVolumeLabel in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcomputernamea https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcomputernamew https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setvolumelabela

[Mingw-w64-public] [PATCH 16/37] headers: allow GetUserDefaultLangID in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-getuserdefaultlangid --- mingw-w64-headers/include/winnls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/winnls.h b/mingw-w64-headers/include/winnls.h index ebae7a5c..89f6a07f

[Mingw-w64-public] [PATCH 24/37] headers: allow RtlCaptureStackBackTrace and RtlVirtualUnwind in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-rtlcapturestackbacktrace --- mingw-w64-headers/include/winnt.h | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git

[Mingw-w64-public] [PATCH 27/37] headers: allow some sysinfoapi.h functions in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsystemdirectorya https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsystemdirectoryw https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getlogicalprocessorinformation

[Mingw-w64-public] [PATCH 09/37] headers: add some Fiber API's allowed in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createfiberex https://docs.microsoft.com/en-us/windows/win32/api/fibersapi/nf-fibersapi-isthreadafiber --- mingw-w64-headers/include/fibersapi.h | 5 - mingw-w64-headers/include/winbase.h | 10 +- 2 files

[Mingw-w64-public] [PATCH 03/37] headers: allow FreeLibraryAndExitThread for winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-freelibraryandexitthread --- mingw-w64-headers/include/libloaderapi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/libloaderapi.h

[Mingw-w64-public] [PATCH 13/37] headers: add more Heap API's to winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapcreate https://docs.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapsetinformation --- mingw-w64-headers/include/heapapi.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[Mingw-w64-public] [PATCH 05/37] headers: allow the ThreadPoolAPI in winstore builds

2020-04-15 Thread Steve Lhomme
It's allowed https://docs.microsoft.com/en-us/windows/win32/api/threadpoolapiset/nf-threadpoolapiset-createthreadpool --- mingw-w64-headers/include/threadpoolapiset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/threadpoolapiset.h

[Mingw-w64-public] [PATCH 35/37] headers: add GetNamedPipeHandleStateA/W to winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getnamedpipehandlestatea https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-namedpipe-l1-2-1dll --- mingw-w64-headers/include/winbase.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[Mingw-w64-public] [PATCH 11/37] headers: add directory and command line APIs to winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinea https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcurrentdirectory --- mingw-w64-headers/include/processenv.h | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-)

[Mingw-w64-public] [PATCH 12/37] headers: add CopyFile to winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-copyfilea --- mingw-w64-headers/include/winbase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw-w64-headers/include/winbase.h b/mingw-w64-headers/include/winbase.h index db02353f..3fa8d85c

[Mingw-w64-public] [PATCH 10/37] headers: allow ReplaceFile in winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-replacefilea --- mingw-w64-headers/include/winbase.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/winbase.h b/mingw-w64-headers/include/winbase.h index 794cf775..db02353f

[Mingw-w64-public] [PATCH 20/37] headers: add CoIncrementMTAUsage/CoDecrementMTAUsage to winstore builds

2020-04-15 Thread Steve Lhomme
https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis --- mingw-w64-headers/include/combaseapi.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mingw-w64-headers/include/combaseapi.h b/mingw-w64-headers/include/combaseapi.h index ca6483f9..fa289ac1 100644 ---

[Mingw-w64-public] [PATCH 17/37] headers: add some process/thread API's allowed in winstore builds

2020-04-15 Thread Steve Lhomme
Along with the related structures https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminateprocess https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa

  1   2   3   4   5   >