# Use NtCreateFile directly in ReadLink · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/390194431e7fa439d67686e5a0e9efceed2d898a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 390194431e7fa439d67686e5a0e9efceed2d898a

Requested commit: 390194431e7fa439d67686e5a0e9efceed2d898a

Commit: 390194431e7fa439d67686e5a0e9efceed2d898a

Tree: 8581d23993963aa7ba2c8eebecd08a46d90d0be2

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
Use NtCreateFile directly in ReadLink

This shaves off one syscall (we use one instead of two if we were to
use `windows.OpenFile` wrapper). Clean up flag generation in `OpenFile`.
Hopefully, we're in a much better place to *almost* support `openW`
and `openatW`.

```

## Parents

- [8981b18fee9dc1db7faa8343d0d2151c3c0671fd](https://git.cafe/gitcafe/zig/commit/8981b18fee9dc1db7faa8343d0d2151c3c0671fd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/390194431e7fa439d67686e5a0e9efceed2d898a?format=markdown)
