Fix GetFileInformationByHandle compile error
The wrapper function was mistakenly referencing ntdll.zig when the actual function is declared in kernel32.zig.
LGTM. Eventually we'd like to use the Ntdll calls for file stuff, because this is highly unlikely to change. For file information this would be NtQueryInformationFile. see #1840.
Eventually we'd like to use the Ntdll calls for file stuff
This is already the case, unless you mean that Zig should supply a GetFileInformationByHandle implementation using NtQueryInformationFile.
std.os.windows.GetFileInformationByHandle is entirely unused in the std library (hence why this compile error was not found until now) and the only other related reference to GetFileInformationByHandle is one usage of std.os.windows.kernel32.GetFileInformationByHandleEx here.
Ok cool, is there anything else I can do to get this merged? Or just wait until an admin approves the PR? It's my first contribution so I'm not sure how this works.
Nothing you need to do, just need to wait.
Thank you for the patch.
I think I would prefer to entirely remove this function from the standard library rather than fix it.
Related issue: #4426
Ok, that makes sense given the std lib doesn't use this function at all.
Latest change delete the function so no one will make the same mistake again. :) I think #14841 should probably clean up the dangling GetFileInformationByHandleEx declaration in kernel32.zig as well.