Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network access
Message
De
16/11/1999 16:09:55
 
 
À
16/11/1999 15:53:08
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00291065
Message ID:
00291617
Vues:
24
>>>Is their a free class library or dll available that will allow me to attach and map to Novell and NT systems without having to shell out to DOS? If not, what are the relevant Win API functions that will allow me to do this?
>>>
>>
>>There are a number of APIs available - WNetAddConnection() and its relatives will map drives and the like quite easilt - I have sample code for using this in my NETRESOURECE class here on UT (it also requires the CLSHEAP library, also here on UT) - there is a working implementation of WNetAddConnection3(), which is the most flexible of the related APIs.
>>
>>You also have the option of using an Automation class - the Windows Scripting Host's Wscript.Network has methods to map and release drives and printers, and is much easier to use than the APIs without really having to understand much about the underlying network. Microsoft's ADSI components can administer much of the network environment for you, especially the NT environment.
>>
>>The WSH can be downloaded from msdn.microsoft.com/scripting, and is fully redistributable. It's built into Win98 and Win2K, and is also automatically installed by installing IE on target systems. There's considerably more to the WSH than just mapping drives...
>>
>>
>>>Ed
>
>Thanks a lot Ed. I found the CLSHEAP library in files, but I can't find Net resourcece. Which section is it in?
>

Classes - VCX - File #9502 called NETRESOURCE STRUCTURE CLASS

>Ed
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform