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