>I am looking for a way to connect to a server and map a network drive by using a user's logon name and password. I found the WNetAddConnection2 function, but it requires the NETRESOURCE structure as a parameter. Is there any way to do this in Visual FoxPro (6 or 7) without writing a VB dll to make the call? Does anyone know of any other function that I could use in Visual FoxPro that would allow me to use the user's logon name and password?
>
My NETRESOURCE class (File #
9502) contains a sample implementation of WNetAddConnection3(), an enhanced version of WNetAddConnection2().