How to unlock windows programmatically

I would like to use my old mirror (purple) which allows events to fire when you put and receive an rfid tag on / off the rfid tag reader. Using LibMirror I can program events in C # which are pretty convincing.

My idea is to block and unblock my station when I take and put the rfid tag in the mirror.

It is easy to lock the station thanks to 2 , however unlocking seems more difficult.

Several posts 3 , 4 on SO show this is difficult, but I would like to have a definitive answer.

I have to clarify that I am not interested in any security consideration, it is much more for the sake of it.

EDIT : a purple mirror used for this, so I'm convinced it is possible.

Any hint would be appreciated.

0


source to share


1 answer


No, It is Immpossible. Is this enough for you?

Whether you are into security or not, the Windows team is absolutely obligated. Hence, there is no API to unlock the secure desktop.

It doesn't make sense anyway - you need to enter a password to unlock the workstation and how will the function call enter the password?



UI automation or whatever some ingenious hacker might come up with won't work because a secure attention sequence ( Ctrl+ Alt+ Del) is required to prevent people from doing exactly that.

The only solution is to completely replace the Windows security system. On Windows XP, you do this by writing a new GINA library instead of the default one msgina.dll

. Things got a little more complicated in Windows Vista where GINA was replaced by new credential providers . You may find this article helpful if you are interested in taking such a route.

+3


source







All Articles