51c5740879
The actual desired access mask in this case seems quite confusing and badly documented. The previous combination of `GENERIC_READ` and `SYNCHRONIZE` seems both illegal and redundant according to the [`ntifs.h` documentation](https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntcreatefile), which specifies that `GENERIC_READ` should not be used for directories and includes `SYNCHRONIZE`. `winnt.h` contains a number of relevant-sounding flags such as `FILE_ADD_FILE`, `FILE_ADD_SUBDIRECTORY`, and `FILE_DELETE_CHILD` that do not show up in documentation at all. These are equal in value to file-specific flags that are documented as flags you should not specify when opening a directory. |
||
---|---|---|
.. | ||
advapi32.zig | ||
bits.zig | ||
error.zig | ||
kernel32.zig | ||
lang.zig | ||
ntdll.zig | ||
ole32.zig | ||
shell32.zig | ||
status.zig | ||
sublang.zig | ||
ws2_32.zig |