# Use NtQueryInformationFile unless unavailable · gitcafe/zig

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

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

Visibility: public

Requested revision: 2628a8846e429ba7f51927985733f8e33f3b6a65

Requested commit: 2628a8846e429ba7f51927985733f8e33f3b6a65

Commit: 2628a8846e429ba7f51927985733f8e33f3b6a65

Tree: 04e4de0748a55992f4a2a590312c99e585d0f877

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
Use NtQueryInformationFile unless unavailable

Favour newer API which uses `NtQueryInformationFile` with class flags
`FileNormalizedNameInformation` and `FileVolumeNameInformation`
instead of lower-level `NtQueryObject`. `NtQueryObject` is still
used as a fallback in case the former are unavailable.

```

## Parents

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

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