Solved

getting user login name and password

Posted on 1998-07-21
2
183 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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now