Can we just run like rundll32.exe shell32.dll,#XX to call lock screen on Windows 10..?

I need to call it without win+l because my Delphi cannot simulate win logo key.


Use the following command to lock the screen:

rundll32.exe user32.dll,LockWorkStation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.