Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WNetAddConnection2-Win32API
Message
De
19/08/1996 18:03:49
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
WNetAddConnection2-Win32API
Divers
Thread ID:
00006162
Message ID:
00006162
Vues:
140
I am wanting to use this API call in VFP to connect to a server. I presently have:
DECLARE INTEGER WNetAddConnection2 in Win32API AS AddNetConnect;
STRING,STRING,STRING,INTEGER

AddRetVal=AddNetConnect('\\SSC_DB\sys','password','dbuser2',0)
Now, my first problem is that the first parameter, lpNetResource is of type LPNETRESOURCE not STRING. How do I tell VFP that?
I can logon with the present version but it returns 487(invalid pointer)and log on under the 'current user' ID; a result of wrong type. Has anyone had luck using this API call?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform