Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Network access
Message
From
14/11/1999 10:28:13
 
 
To
14/11/1999 04:48:57
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00291065
Message ID:
00291082
Views:
28
>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
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform