Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

getting user login name and password

Posted on 1998-07-21
2
Medium Priority
?
191 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

916 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