Determining the share a drive for which a drive is mapped

  • Thread starter Thread starter Stephanie Doherty
  • Start date Start date
S

Stephanie Doherty

Hello World,

I am using Visual C++.Net Ver 6 and am hoping to find out how to determine
the share name/UNC path that is associated with a specific drive letter.
I've looked at the Drive Object documentation, but there is no C++ code to
work with. Does anyone have an idea how to accomplish this?

Thanks for any insite,
Stephanie
 
Hi Stephanie Doherty,
I am using Visual C++.Net Ver 6 and am hoping to find out how to
determine the share name/UNC path that is associated with a specific
drive letter. I've looked at the Drive Object documentation, but there
is no C++ code to work with. Does anyone have an idea how to
accomplish this?

See: QueryDosDevice
http://msdn.microsoft.com/library/en-us/fileio/base/querydosdevice.asp

See also: Defining an MS-DOS Device Name
http://msdn.microsoft.com/library/en-
us/fileio/base/defining_an_ms_dos_device_name.asp

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Back
Top