# windows.GetFinalPathNameByHandle: Support volumes mounted as paths · gitcafe/zig

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

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

Visibility: public

Requested revision: a0f1825c53f5bbc62760b830e8d25499ace5884a

Requested commit: a0f1825c53f5bbc62760b830e8d25499ace5884a

Commit: a0f1825c53f5bbc62760b830e8d25499ace5884a

Tree: 0d67ff9d13cb3a786e067f10a4d07f99cf616317

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
windows.GetFinalPathNameByHandle: Support volumes mounted as paths

A volume can be mounted as a NTFS path, e.g. as C:\Mnt\Foo. In that case, IOCTL_MOUNTMGR_QUERY_POINTS gives us a mount point with a symlink value something like `\??\Volume{383da0b0-717f-41b6-8c36-00500992b58d}`. In order to get the `C:\Mnt\Foo` path, we can query the mountmgr again using IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATH.

Fixes #19731

```

## Parents

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

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