Remove std.os.windows.QueryInformationFile
(a wrapper of NtQueryInformationFile
)
#14842
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This function is unused, it doesn't provide much over a direct call to
NtQueryInformationFile
, and the current implementation contains a few footguns:BUFFER_OVERFLOW
(which is returned if the size of the out_buffer is too small to contain all the variable-length members of the requested info, which the user may not actually care about, see 6d74c0d)FILE_INFORMATION_CLASS
, etc, and making a wrapper that handles all of those different use-cases nicely seems like it'd be more trouble than it's worth (FILE_INFORMATION_CLASS
has 76 different possible values)If a wrapper for
NtQueryInformationFile
is wanted, then it should probably have wrapper functions per-use-case, like howQueryObjectName
wrapsNtQueryObject
for theObjectNameInformation
class:zig/lib/std/os/windows.zig
Lines 1015 to 1042 in e3cf9d1