Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WNetAddConnection2
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00634984
Message ID:
00635228
Vues:
18
>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().
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform