>Hi all,
>
>I have been trying to use the WNetAddConnection() API call in my foxpro app. The shares I map drives to all need a userid AND password to connect to them, but the article in the FAQ section says that this function accepts 3 parameters - Path Name, Password, and Drive Letter.
>Any suggestions?
>
>Thanks,
>Jeff
WNetAddConnection() is provided for 16 bit compatibility. You could use Ed Rauh's NetResource file (from the download section). As I recall, it implements WNetAddConnection3() and should allow you to do what you need.
An alternative, if available, would be the Windows Script Host's WScript.Network object. It's MapNetWorkDrive method allows you to do this as well.
George
Ubi caritas et amor, deus ibi est