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_DESKTOP|WINAPI_PARTITION_APP)) ==
(WINAPI_PARTITION_DESKTOP|WINAPI_PARTITION_APP)
One is not supposed to use WINAPI_FAMILY_PARTITION(<family>), one is
supposed to do WINAPI_FAMILY_PARTITION(<partition>). So the code that
You're right.
I think in general this header could do with some more comments.
Everytime I look at it I have to scratch my head wondering which is which.
Also the proper family for Winstore app is WINAPI_FAMILY_PC_APP, adding
to the confusion. WINAPI_FAMILY_APP is a legacy from the Windows 8 SDK.
https://github.com/microsoft/Windows-universal-samples/blob/fe8567faf2efdea3672c2ba642ba7b925ff6467e/Samples/Geolocation/cpp/BackgroundTask/LocationBackgroundTask.cpp#L86
does WINAPI_FAMILY_PARTITION(WINAPI_FAMILY_DESKTOP_APP) is wrong.
Apparently there's one single such case in fileapi.h, all other uses of
WINAPI_FAMILY_PARTITION are correct.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public