LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the password of the current user of the localcomputer??

There is a function in the labwindows ,it is GetCurrentUser();This function returns the name of the user currently logged–in to the Windows operating system.But how to get the password of the computer????
0 Kudos
Message 1 of 7
(9,321 Views)
I doubt there is a function to get the password of the user logged into the computer.  This would be a huge security hole.  You can prompt the user to enter their password.  I'm sure there is a function to validate the user name and password in the windows SDK.  What do you need the users password for? 
----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
0 Kudos
Message 2 of 7
(9,311 Views)
I want to log in the computer !!
0 Kudos
Message 3 of 7
(9,286 Views)
From what I can find, windows does not store a clear text version of the users password.  Windows stores a copy that has been protected with one-way encryption.  You can find more information about logging a user into windows in the MSDN documentation on LSALogonUser function. It does not help you get the users password.  I think you're stuck with prompting the user to give you their username and password. 

What kind of application are you trying to create?  You might be trying to create a windows service (an application that starts when the computer boots and runs until it is shutdown).  If so, take a look at these articles from Google.
----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
0 Kudos
Message 4 of 7
(9,280 Views)
Many softwares can get the pwd and the username.I think there must be a way to do it with labwindows.And I'm not satisfied with the usename,I want to know more.
0 Kudos
Message 5 of 7
(9,265 Views)
If CVI had a function like this, it would become the primary choice of script kiddies overnight.  Are you a script kiddie?

Message Edited by cosmo on 12-18-2005 12:02 AM

Message 6 of 7
(9,259 Views)

To accomplish this, you need to modify the registry (using regedit or otherwise).

For Windows 2000, see this; for XP, see that. Be careful!

Regards,
Colin.
 
0 Kudos
Message 7 of 7
(9,232 Views)