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

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

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

Visibility: public

Requested revision: e36bf2baff64ebc5c26215e98836454e906448cc

Requested commit: e36bf2baff64ebc5c26215e98836454e906448cc

Commit: e36bf2baff64ebc5c26215e98836454e906448cc

Tree: 19b0ca1e0e23870c3cdf1babfc0824e9eb02644d

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

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

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