Solved

Determining a network drive UNC name

Posted on 1998-03-03
2
646 Views
Last Modified: 2012-08-13
Using MSVC++5.0, I'm writing a DLL to supply some functions to PowerBuilder that it doesn't have, such a creating and removing directories, and others.

Is there a simple method of determining the  Universal Naming Convention (UNC) of a network drive?  PB's open file dialog box doesn't give the UNC for network drives.  I'm looking for something non-visual if possible.

Thanks, Jody
0
Comment
Question by:jodyl
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 150 total points
ID: 1182996
On Windows NT, you can use WNetGetUniversalName() function. On Windows 95, take a look at
http://support.microsoft.com/support/kb/articles/q131/4/16.asp.
0
 

Author Comment

by:jodyl
ID: 1182997
Works great.  Thanks.

Since most of my users will be using Win95 I needed to go with the work around function shown in the MS support article.

Jody

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now