You can lock a Windows PC by pressing Windows + L.
How can I lock a Windows PC using VB.NET or C#?
A short example would be helpful.
Call the LockWorkStation function using PInvoke.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With