Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

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
0
wildan_ali
Asked:
wildan_ali
  • 2
  • 2
1 Solution
 
jkrCommented:
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.
0
 
anthony_wCommented:
To get the currently logged-on user, you can use the GetUserName or GetUserNameEx API
0
 
wildan_aliAuthor Commented:
antthony, is it can be implemented before the user logged on?
0
 
jkrCommented:
If no user is logged on, you cannot get any usernames...
0
 
wildan_aliAuthor Commented:
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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now