# Redo GetFinalPathNameByHandle using DeviceIoControl · gitcafe/zig

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

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

Visibility: public

Requested revision: bdda8fa7a818c90803fb64f9784040bf3b9f0a5e

Requested commit: bdda8fa7a818c90803fb64f9784040bf3b9f0a5e

Commit: bdda8fa7a818c90803fb64f9784040bf3b9f0a5e

Tree: a4df7ab11a30dd02d1593d74b6576f53ebbb1517

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
Redo GetFinalPathNameByHandle using DeviceIoControl

This commit reimagines `std.os.windows.GetFinalPathNameByHandle`
using `DeviceIoControl` to query the OS mount manager for the DOS
(symlink) paths for the given NT volume name. In particular,
it uses `IOCTL_MOUNTMGR_QUERY_POINTS` ioctl opcode to query the
manager for the available moount points.

```

## Parents

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

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