# std.os.windows.GetFinalPathNameByHandle: replace kernel32 by ntdll call · gitcafe/zig

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

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

Visibility: public

Requested revision: 64c5f4979e99b35ef8a2a2c200c095b4d8917328

Requested commit: 64c5f4979e99b35ef8a2a2c200c095b4d8917328

Commit: 64c5f4979e99b35ef8a2a2c200c095b4d8917328

Tree: 6a35a195a8e5f8dccf1ef7b2f00a1b00f49bf663

Author: Rohlem

Committer: Andrew Kelley

## Message

```
std.os.windows.GetFinalPathNameByHandle: replace kernel32 by ntdll call

Removes the call to kernel32.GetFinalPathNameByHandleW in favor of NtQueryObject, which means we can reuse the other codepath's logic for DOS naming.

```

## Parents

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

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