Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WNetAddConnection
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00403584
Message ID:
00403610
Views:
14
What are you connecting to? Novell? NT? I modified that API yesterday to include sample code for connecting to Novell. The difference is setting the password to chr(0), and not "".

>I'm using this API call to establish a connection to a server during program execution, but it's not working. I'm using code I found on the UT:
>
>Declare INTEGER WNetAddConnection IN "mpr.dll" ;
> STRING cRemoteName, ;
> STRING cPassword, ;
> STRING cLocalName
>
>cResource = "\\Eddc002\Construction"
>cPassword = ""
>cDriveLetter = "G:"
>
>?WNetAddConnection(cResource, cPassword, cDriveLetter)
>
>An integer is returned, but I have no idea what it means because the MSDN help only lists error messages, not their correpsonding #'s.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform