Page 1 of 1

How to lock your PC

Posted: Tue Dec 01, 2009 12:19 am
by Seldon
I would like to make a program like this: http://www.montpellier-informatique.com ... /index.php . Have you any ideas about the locking method to use ? Maybe using a system hook to process all the events in advance ?

Re: How to lock your PC

Posted: Tue Dec 01, 2009 12:31 am
by Rook Zimbabwe
maybe you have a program that every 1-3 seconds polls the USB drive for a hidden file and if it does not see it then it dims the screen and blocks access from the mouse or keyboard by taking control of the mouse and keyboard and blanking all input.

8)

Re: How to lock your PC

Posted: Wed Dec 02, 2009 10:16 am
by Seldon
Thanks for your time! Yes, for the first part I have some ideas. The WaitforSingleObject() API could do the job very well. But how to lock keys and mouse events ? I'm thinking of ALT+TAB or CTRL+ALT+CANC (SHIFT+CTRL+TAB on Vista) , etc... ?

Re: How to lock your PC

Posted: Wed Dec 02, 2009 8:42 pm
by Rook Zimbabwe
I know you can inteercept those keypresses in XP Pro and assign them to do nothing (or perhaps pop up a window saying that they won't work) but I think in Win7 that idea has been removed... I have no idea in Vista

Re: How to lock your PC

Posted: Thu Dec 03, 2009 1:43 am
by citystate
perhaps the Kiosk system mentioned here viewtopic.php?t=24100 may help - it has a method of locking out taskmanager