Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to access win32api function LogonUser
Message
De
28/12/1998 05:28:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
How to access win32api function LogonUser
Divers
Thread ID:
00170686
Message ID:
00170686
Vues:
97
I am trying to logon programmaly to an other domain
I am using to winapi32 function

why is this not working ?

Kind regards


Jan Dorresteijn.

DECLARE INTEGER LogonUser ;
IN WIN32API ;
string @aUser,string @cdomain, string @apassw, integer @aType1,integer @atype2,integer atype3

handle = 0
h_user = "user1"
h_serv = "domain"
h_a1 = 1
h_a2 = 0
h_pass = "passw1"
a= LogonUser(@h_user,@h_serv,@h_pass,@h_a1,@h_a2,@Handle)
? a && returns 0

DECLARE INTEGER GetLastError IN WIN32API
lnError = GetLastError()
wait window STR(lnError) && Returns 127
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform