const OpenFileOptions = struct access_mask: windows.ACCESS_MASKdir: ?windows.HANDLE = nullsa: ?*const windows.SECURITY_ATTRIBUTES = nullshare_access: windows.FILE.SHARE = .VALID_FLAGScreation: windows.FILE.CREATE_DISPOSITIONfilter: Filter = .non_directory_onlyfollow_symlinks: bool = trueIf false, tries to open path as a reparse point without dereferencing it. Defaults to true.
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139const OpenFileOptions = struct {
access_mask: windows.ACCESS_MASK,
dir: ?windows.HANDLE = null,
sa: ?*const windows.SECURITY_ATTRIBUTES = null,
share_access: windows.FILE.SHARE = .VALID_FLAGS,
creation: windows.FILE.CREATE_DISPOSITION,
filter: Filter = .non_directory_only,
/// If false, tries to open path as a reparse point without dereferencing it.
/// Defaults to true.
follow_symlinks: bool = true,
pub const Filter = enum {
/// Causes `OpenFile` to return `error.IsDir` if the opened handle would be a directory.
non_directory_only,
/// Causes `OpenFile` to return `error.NotDir` if the opened handle is not a directory.
dir_only,
/// `OpenFile` does not discriminate between opening files and directories.
any,
};
}