Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 723
  • Last Modified:

Determining a network drive UNC name

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
jodyl
Asked:
jodyl
1 Solution
 
chensuCommented:
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
 
jodylAuthor Commented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now