Make windows XP ask for password
-
27-09-2019 - |
Question
We have software that have some features that are so sensitive that we want to verify the identity of the user. Instead of using a own user/password scheme we would really like to either test the password against the user password in XP, or even make Windows self reauthenticate the user so we can make sure that it is an authorized person that accesses the function.
Or software is only running on windows XP embedded.
I do not know if this is possible at all, does windows have any such features?
Solution
- Ask for the user's password using
CredUIPromptForCredentials()
(works for any username/password, not just Windows logon) - Validate it using either
LogonUserEx()
... - ...or SSPI: KB180548: How to validate user credentials on Microsoft operating systems
- ...or even your own mechanism.
- The
Cred*()
API allows credentials to be stored by Windows and encrypted using the logon password.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow