How to log into Windows using a PIN code programmatically

Windows 8 introduced a new authentication method for users who are not members of the domain: using the PIN code set on the control panel.

Currently, our application supports logging into Windows using a previously saved password using LogonUserW()and now also requires PIN support.

How can we achieve this from a .NET application, directly or using P / Invoke?

+5
source share
1 answer

Thus, all this material is controlled by the ICredentialProviderinterface area - for Windows 8 they added an extension to ICredentialProvider2, mainly for binding credential providers to individual user accounts.

I am not an expert here, but I found some links:

My gut says you can probably create a thin wrapper for the COM-interface (possibly interfaces ICredentialProviderProviderand ICredentialProvider) and call them this way ... but I'm mostly guessing here.

+2
source

All Articles