>Hay, I'm working in applications that need control the users security profile, it have a table with all users registered and my problem is control the login in the application looking the (local security account) LSA of Windows and the account on a server domain were he or she is logged.
>
>Any want know and API that return user name and eventually validate a password given to it.
>
>Thanks
To get the user's name, you can use the GetUserName API function documented in the WinAPI section. To verify the password, you can use the NetUserChangePassword API function to attempt to change it to the same password.
See Thread #
447938 Message #
449121 for more details on the possible error messages returned if not successful and interpreting them for success.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao