By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Get machine user & password logon

P: n/a

Could anyone please help?

I'm trying to MATCH the user's UserName and Password imput to the user's
UserName & Password from the machine current logged on.

User's Input:
txtUserName="Joe"
txtPwd="Password"

Machine's data:
strUserName = ???
strPwd = ???

thanks a lot in advance.

Nov 2 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
i highly doubt youl be able to get the users stored password since that would
be a breach of security. also, doesnt windows hash the user passwords so they
cant be hacked? if you could find the hashed user password and the hash
algorithm used for it, maybe you could hash their input and compare it to the
saved one
--
-iwdu15
Nov 2 '06 #2

P: n/a
Kleber wrote:
Could anyone please help?

I'm trying to MATCH the user's UserName and Password imput to the user's
UserName & Password from the machine current logged on.

User's Input:
txtUserName="Joe"
txtPwd="Password"

Machine's data:
strUserName = ???
strPwd = ???
I doubt you will be able to "get" the user's password. Instead your
program can try to logon using the passed in username and password and
if that succeeds, you know it is correct. Here is a class I use that
calls the LogonUser api. Maybe it will help you:

http://tinyurl.com/sa3cr

Nov 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.