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

2020-04-18 Thread Jean-Baptiste Kempf
On Sat, Apr 18, 2020, at 17:04, Liu Hao wrote: > What's the difference between these two directories? 2 Different versions of Windows 10. -- Jean-Baptiste Kempf - President +33 672 704 734 ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sou

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

2020-04-18 Thread Liu Hao
在 2020/4/18 23:04, Liu Hao 写道: > > What's the difference between these two directories? > > ... It seems that the 'km' directory contains headers that are used in [k]ernel [m]ode. Then I think it is the right decision to follow UCRT convention, to introduce the macro `_CRT_USE_WINAPI_FAMILY_DES

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

2020-04-18 Thread Liu Hao
在 2020/4/18 21:18, Jacek Caban 写道: > > As far as I can see, they do, but differently. corecrt.h defines or not > _CRT_USE_WINAPI_FAMILY_DESKTOP_APP. If WINAPI_FAMILY is not defined, it > just assumes desktop. Otherwise it includes winapifamily.h and uses that > to do the check. That, at least, lim

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

2020-04-18 Thread Martin Storsjö
On Sat, 18 Apr 2020, 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/cp

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

2020-04-18 Thread Jacek Caban
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-functions-not-supported-in-universal-wind

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

2020-04-18 Thread Liu Hao
在 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-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019

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

2020-04-18 Thread Liu Hao
在 2020/4/15 22:30, 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(+) > > Thanks. This series of patches look good to me. I pus

Re: [Mingw-w64-public] [PATCH 01/12] headers: add some security API's to winstore builds

2020-04-18 Thread Liu Hao
在 2020/4/17 20:27, Steve Lhomme 写道: > The ones allowed are listed here > https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-security-provider-ansi-l1-1-0dll > https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-security-provider-l1-1-0d

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

2020-04-18 Thread Liu Hao
在 2020/4/18 18:37, Liu Hao 写道: > 在 2020/4/17 20:08, 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/wi