Find the machine name of a mapped network drive using VC5.0

Suppose a user select a file, I want to find out its abosolute path in the form of "\\ComputerName\C\filename.txt".
I can find out that a file selected from a mapped drive is on a remote machine but how to find out the machine name from just the mapped drive letter?
Who is Participating?
trestanConnect With a Mentor Commented:
Please try this Win32 function:
It gets more universal name in the form of \\servername\sharename\path\file from a driver based path.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.