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