Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Network access
Message
From
17/11/1999 16:13:24
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00291065
Message ID:
00292115
Views:
25
>>>>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
Thanks Ed. I must have went past it several times.

Rf
Previous
Reply
Map
View

Click here to load this message in the networking platform