You can always lock your Windows PC, without turning it off, by using the keyboard shortcut Win Key + L. But if you have programs running which you want others to see you can use a tiny application called ClearLock. This application unlike the regular Lock function in the operating system aims at disabling input to your computer while acting as a transparent layer.