Solved

getting user login name and password

Posted on 1998-07-21
2
185 Views
Last Modified: 2013-11-20
My application runs on a client PC using win95 or NT

How can I get the user login name and password. I know they are saved somewhere but can I get them from my application? HOW?
0
Comment
Question by:kawa
2 Comments
 
LVL 2

Accepted Solution

by:
duneram earned 50 total points
ID: 1319533
on win95 look in the Windows directory for all files having the extension .pwl   The first part of the file is the userid.  the contents of the file is the hashed password.

On NT its handled differently.   On 95 its easy to spoof the computer (because of the .pwl files)  but not quite so on NT.

Why do you need the users's password?

If its for security into your program, you may wish to implement your own logon dialog requiring your own password scheme.  then you would have something that works on both OS's.

If you are connected to a server (NT), you can get info on a user with the

NetUserGetInfo api.    You can change a user's password with NetUserChangePassword.


0
 

Author Comment

by:kawa
ID: 1319534
Thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Importing Special Characters in Dynamics GP Through Integration Manager 3 76
pre4 challenge 19 100
NotAlone Challenge 20 83
Path of Workbook 3 77
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question