Guys I just want to inquire if it's possible to create a program that can lock not only the application but the whole system(PC)? What I want is that, if my application wasn't used within a specified time frame, it will automatically o\lock the whole computer and it can only be unlocked by a password. Any idea shall be appreciated... Thanks
Jump to Post
Simply use the built-in screen saver lock after some minutes of inactivity. Adam_K has just explained the stress in achieving what you want.
In reference to your reputation comment, "shutdown -l" is the shell command to Log Off of the user that is currently signed in. Just like "shutdown -r" …
All 8 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.