Sajidur78 / CredNet

CredNet is a library for easily creating windows credential providers with .Net.
MIT License
17 stars 3 forks source link

how to auto unlock the windows screen when using LockWorkStation api? #9

Closed xeon-ye closed 3 years ago

xeon-ye commented 3 years ago

I use NamedPipe to pass the username,password to the credential, and call Provider.RaiseCredentialsChanged() but nothing happened,how to auto unlock the windows screen after using LockWorkStation api?

Sajidur78 commented 3 years ago

Hi, before calling RaiseCredentialsChanged make sure you're setting Provider.DefaultCredential and setting AutoLogon to true.

xeon-ye commented 3 years ago

got it! thank you very much!