Solved

Determining a network drive UNC name

Posted on 1998-03-03
2
658 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Converting to C# also VS2015 5 124
Handle Exceptions during instantiation 28 414
how to convert c++ code to Android App 3 93
C++ question 3 65
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

813 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

10 Experts available now in Live!

Get 1:1 Help Now