Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

getting user login name and password

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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

721 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