Link to home
Start Free TrialLog in
Avatar of wildan_ali
wildan_ali

asked on

Accessing Windows User Account

Hello Experts,

I am developing a program, Windows Xp/2000 based, that need to know the user account of the Windows. The program needs to verify that username and password match with the username and password entered in windows logon form appear for the first time.

1)How can i access the user account of the windows? Where is it can be found?
2)same as number 1) and do it programmatically?
3)Are there any resources that can help to do this?

Thanks
Avatar of jkr
jkr
Flag of Germany image

See http://support.microsoft.com/default.aspx?scid=KB;en-us;q180548 ("How To Validate User Credentials on Microsoft Operating Systems"), the article comes with all necessary sample code.
To get the currently logged-on user, you can use the GetUserName or GetUserNameEx API
Avatar of wildan_ali
wildan_ali

ASKER

antthony, is it can be implemented before the user logged on?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I want to get information bout windows user account before logged on. becouse i want to log on to windows by not using the log on form. Are there any way to do?