Solved

getting user login name and password

Posted on 1998-07-21
2
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Host to IP 7 84
Thin secure Windows 10 5 117
Problem to open Excel file 15 266
Message not shown 5 107
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…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.

710 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