Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I validate an NT password?
Message
De
19/08/2004 13:53:08
 
 
À
19/08/2004 02:00:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00909838
Message ID:
00934590
Vues:
24
Hi Reza,

I am back.

Here's a very quick example of how you can validate the account/password combination:
FUNCTION ValidatePassword( szUser,szPW )
    LOCAL oServer             && Server object
    LOCAL uReturn             && Logical by default

    m.uReturn = .F.           && Make it a logical False to make sure
    m.oServer = CREATEOBJECT( "UserManager.Server" )  && Create a server object

    && If the logon is successful, we will get
    && a .NULL. back
    uReturn = m.oServer.LogonUser( m.szUser,m.szPW ) && Try to log on

RETURN ( VARTYPE( uReturn ) != "L" )   && Return value to caller
I hope it helps.
Pat
>hi pat
>have you a sample in foxpro
>if yes, please send to me(kia1349@yahoo.com)
>tank in advance
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform