[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use CreateFile2 in UWP builds
|
From: |
Bruno Haible |
|
Subject: |
Re: [PATCH] Use CreateFile2 in UWP builds |
|
Date: |
Tue, 16 May 2023 16:52:49 +0200 |
Steve Lhomme wrote:
> CreateFileA and CreateFileW are forbidden calls in UWP.
> CreateFile2 is close enough, some parameters are passed in a structure
> and it requires a WCHAR filename.
CreateFileW has an emulation in mingw's winstorecompat:
https://github.com/mirror/mingw-w64/blob/master/mingw-w64-libraries/winstorecompat/src/CreateFileW.c
Can you suggest to the mingw people to add a CreateFileA emulation as well?
That's IMO the better place for emulating CreateFileA on top of CreateFile2,
rather than Gnulib.
Bruno