Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for a way to find all network shares
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00901701
Message ID:
00902077
Views:
27
How about ANETRESOURCES()?
* * *
DECLARE INTEGER NetShareEnum IN netapi32;
	STRING servername, LONG lvl, INTEGER @bufptr,;
	LONG prefmaxlen, LONG @entriesread, LONG @totalentries,;
	LONG resume_handle
The NetShareEnum function retrieves information about each shared resource on a server or local computer.

MSDN link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netshareenum.asp

FoxPro code sample (members area):
Retrieving information about shared resources on the local computer (WinNT/XP)
http://www.news2news.com/vfp/?example=351
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform