2

Windows 10/11 provides login to the system with user Login/PIN instead of a password. Is there any winapi way to validate the pair Login/PIN?

Alex Egorov
  • 907
  • 7
  • 26
  • what sense do this ? nobody validate pin. user password is stored in file encrypted by pin. pin provider use pin for decrypt password and pass to system user name and password. pin used only internally – RbMm Dec 02 '21 at 19:49
  • Google Chrome used this when you tried to view passwords if it is enabled for login using a PIN. And I think if it is enabled for login then we should to use it too for validating in our software. – Alex Egorov Dec 07 '21 at 03:29
  • 2
    This question was asked [here](https://stackoverflow.com/questions/14697908/), but never got a good reply. This article *might* be helpful to you: https://learn.microsoft.com/en-us/windows/uwp/security/microsoft-passport-login – paulsm4 Dec 08 '21 at 03:20

1 Answers1

2

You can check out the authentication API in this document, which describes several authentication sections (Credentials Management, LSA Authentication, Network Provider API, Smart Card Authentication, SSPI, Winlogon and Credential Providers), and here is an introduction to using Windows Authentication in C#.

Junjie Zhu - MSFT
  • 2,086
  • 1
  • 2
  • 6