AndrewBanfer
asked on
I need to sync a VB 6 program's User ID and Password with the Windows User ID and Password
I need to sync a VB 6 program's User ID and Password with the Windows User ID and Password.
How can I capture the Windows User's Password in Visual Basic 6?
The VB 6 program uses the Windows User ID and Password to commit a scientific action that a user performs. Just in case someone walks away from the PC and another user goes to walks up and commits the scientific action.
Thanks!
How can I capture the Windows User's Password in Visual Basic 6?
The VB 6 program uses the Windows User ID and Password to commit a scientific action that a user performs. Just in case someone walks away from the PC and another user goes to walks up and commits the scientific action.
Thanks!
ASKER
Thanks, I'll give this a try shortly.
ASKER
Hi Pthepebble,
I got midway through implementing your solution and talked to my client again.
Is there a way to confirm a Windows User is valid to use the PC without being the Windows User who is actually on the PC?
For example,
1) we are acquiring data from an analytical instrument connected to a Windows PC.
2) We can't use the Windows Inactivity Logout because the instrument will stop acquiring data.
3) There are 3 shifts of personnel running the analytical instrument. The instrument can acquire data for 20 hours every day. So, one shift will leave while logged into Windows to keep the analytical instrument acquiring data. If we make a program to require a login after a period of inactivity. Can we check that the new user is a valid user of the PC without checking that the user is valid to the initial person logged in?
I got midway through implementing your solution and talked to my client again.
Is there a way to confirm a Windows User is valid to use the PC without being the Windows User who is actually on the PC?
For example,
1) we are acquiring data from an analytical instrument connected to a Windows PC.
2) We can't use the Windows Inactivity Logout because the instrument will stop acquiring data.
3) There are 3 shifts of personnel running the analytical instrument. The instrument can acquire data for 20 hours every day. So, one shift will leave while logged into Windows to keep the analytical instrument acquiring data. If we make a program to require a login after a period of inactivity. Can we check that the new user is a valid user of the PC without checking that the user is valid to the initial person logged in?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks very much and have a great day!
There is no way you can capture windows users password. You can always get if the right password has been entered or not.
The below code is a sample of what i have used to authenticate users using windows paswords. You can always use thesame to update users password to a table if it returns a success etc.
Open in new window