Sign in to follow this  
Followers 0
LostUser

How to get the UNC from drive letter

3 posts in this topic

Your friendly noob here.

Ok, can someone help me with this?

With my limited intellect and knowledge I have been trying to read MSDN and these boards to use the following functions to get the UNC path from a drive letter.

Here are the functions from the mpr.dll.

WNetGetUniversalName

WNetGetConnection

I have some code but it is small and doesn't work so I won't bother to show it.

Here is a link to MSDNs info on these functions. http://windowssdk.msdn.microsoft.com/libra...iversalname.asp

I'll take whatever you can give.

Thanks


Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools.

Share this post


Link to post
Share on other sites



DriveMapGet("x:") :)

Hah!

That was easy.

Believe it or not, I did read the documentation. However, I searched for UNC rather than drive mapping. I am glad it is that easy.

I'm still curious as to how the dllcall would be but it's not that important right now.

Thanks JdeB


Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0