microsoft / microsoft/wil

wil::GetFinalPathNameByHandleW suggestion

Open
#378 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
C++
Stars
3k
Forks
300
Avg merge
19h 12m
Merged PRs (30d)
1

Description

I’m using this in my code, and I see:

wil::VolumePrefix::Dos (default)	\\?\C:\Windows\System32\nslookup.exe

wil::VolumePrefix::None             		\Windows\System32\nslookup.exe

While this Api is just a light wrapper around GetFinalPathNameByHandleW(), I think it would be a nice addition to have “wil::VolumePrefix::DosNoPrefix” (or some similar name) as a convenience that would return C:\Windows\System32\nslookup.exe

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating wil::VolumePrefix and the wrapper around GetFinalPathNameByHandleW. Read how the existing Dos and None values are translated, then add the requested no-prefix behavior so a drive path is returned as C:\Windows\System32\nslookup.exe rather than with the \?\ prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.