Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I validate an NT password?
Message
From
19/08/2004 13:53:08
 
 
To
19/08/2004 02:00:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00909838
Message ID:
00934590
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform