Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetLanAddress()?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00184252
Message ID:
00184262
Vues:
26
>Is there anything out there that will offer a list and will return an absolute LAN address? Or which .dll offers up the map network drive select dialogs? ie. \\machine\drivesharename


There are a number of API calls in the Net and WNet family of calls that might be what you're looking for; I'd start by looking at WNetOpenEnum() and WNetEnumResource() to examine lists of available shares on the network. Both require the use of a NETRESOURCE structure, so you'll need something like Paul Tatavu's POINTERS class or my CLSHEAP class to process the returned structures.

In addition, I'd look at the ADSI OLE Automation objects, which are available from Microsoft's Web page; depending on exactly what you're trying to do and the environment you're working in, they offer tremendous functionality.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform