On Wednesday 05 November 2025 22:14:17 Martin Storsjö wrote: > On Wed, 5 Nov 2025, Pali Rohár wrote: > > > On Wednesday 05 November 2025 15:46:09 Martin Storsjö wrote: > > > On Sat, 1 Nov 2025, Pali Rohár wrote: > > > > > > > FILE_DISPOSITION_INFORMATION_EX is used for issuing POSIX unlink() > > > > syscall. > > > > Definitions taken from public header ntddk.h file. > > > > --- > > > > mingw-w64-headers/ddk/include/ddk/ntddk.h | 15 +++++++++++++++ > > > > mingw-w64-headers/include/winternl.h | 15 +++++++++++++++ > > > > 2 files changed, 30 insertions(+) > > > > > > Why should this be added to winternl.h? The public WinSDK doesn't have any > > > of these declarations in winternl.h - what are you trying to achieve by > > > exposing things that normally are only available in DDK headers in > > > winternl.h? > > > > I saw that FILE_DISPOSITION_INFORMATION is available in those two files, > > so I added FILE_DISPOSITION_INFORMATION_EX into same files too. > > > > winternl.h contains definitions for userspace ntdll.dll usage and > > ntddk.h definition for kernel driver ntoskrnl.exe usage. At least this > > is how I understand it. > > Sure, but if the public WinSDK doesn't contain things for userspace > ntdll.dll usage in winternl.h, then we shouldn't either. This isn't the > place for going on our own quest to extend the scope for mingw-w64 headers, > I would say.
Well, I saw that mingw-w64 winternl.h already contains other stuff from ntddk.h which is not in the ms winternl.h header file, so I thought that it is a good idea to have it. That is why I added it into both files. > > > > > (Do note that normal structs/defines for using these features are > > > available > > > in winbase.h already, since 763b87505a6bbfda6e5e23f257f308fd92e80f4c. > > > > They are not. In 763b87505a6bbfda6e5e23f257f308fd92e80f4c was added > > FILE_DISPOSITION_INFO_EX which is not FILE_DISPOSITION_INFORMATION_EX. > > > > FILE_DISPOSITION_INFO_EX is used by SetFileInformationByHandle + > > FileDispositionInfoEx > > FILE_DISPOSITION_INFORMATION_EX is used by NtSetInformationFile + > > FileDispositionInformationEx > > Sure, but I meant to say that it is possible to use this functionality > through the intended user mode APIs. > > // Martin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
