Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with LogonUser
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00489684
Message ID:
00489793
Vues:
17
>I can't seem to get LogonUser to work properly. I am using the following code:
>
>
>DECLARE INTEGER LogonUser in WIN32API ;
>       String lcUser,;
>       String lcServer,;
>       String lcPassword,;
>       INTEGER dwLogonType,;
>       Integer dwProvider,;
>       Integer @dwToken
>
>lnToken = 0
>lnResult = LogonUser(lcUsername,lcDomain,lcPassword,;
>                     3,LOGON32_PROVIDER_DEFAULT,@lnToken)
>
>
>I use my username, password and domain from my network NT account yet the result is always 0. I am running Win 2K Pro. Any help would be greatly appreciated.
>
>Jake

What does GetLastError() return?
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform