Unlock Windows programmatically

前端 未结 5 1832
栀梦
栀梦 2020-11-28 12:39

In my current C# code I\'m able to lock a Windows user session programmatically (same as Windows + L).

Since the app would still be running, is there any way to unlo

5条回答
  •  隐瞒了意图╮
    2020-11-28 13:15

    Of course you can't unlock it. Unlocking a session requires the user physically be there to enter their account credentials. Allowing software to do this, even with saved credentials, would be a security issue for many of the other situations where workstation locking is used.

提交回复
热议问题