Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Login
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00833716
Message ID:
00833801
Vues:
29
Hi Aashish,

Try WNetAddConnection2 API function -- it accepts password and user name as parameters.
DECLARE INTEGER WNetAddConnection2 IN mpr;
	STRING @lpNetResource, STRING lpPassword,;
	STRING lpUsername, INTEGER dwFlags
MSDN link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/wnetaddconnection2.asp

FoxPro code sample:
Mapping and disconnecting network drives in FoxPro application
http://www.news2news.com/vfp/?example=387&function=597
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform