How to unlock Windows lockscreen?

delphi, lockscreen, security, windows

Solution

You cannot unlock the lock screen programmatically from user space. That is by design.

OK, let's clarify that. Using documented APIs, you cannot do this. You need to reverse engineer undocumented APIs as @Remko has done for his SasLibEx product.

Problem

How can I unlock the windows lockscreen with Delphi? I didn't found anything on Google or Stackoverflow. I already tried to enter my password using keybd_event but it seems like the events dont work on the lockscreen.

Original source