• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

Windows API

What API I can use to find out list of all the shares available on my computer (Windows machine). For. example if you do map network drive, you would have a share. How can I obtain the list of all connected / available shares through C++ ?

Also, how can I find it on Unix?
0
pb_india
Asked:
pb_india
1 Solution
 
_corey_Commented:
NetShareEnum() http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stgmgmt/fs/netshareenum.asp probably has something like you want.

http://www.sysinternals.com/ntw2k/source/shareenum.shtml ["ShareEnum"] has a full example and source for using this.

corey
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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