How to lock your PC

Everything else that doesn't fall into one of the other PB categories.
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

How to lock your PC

Post 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 ?
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: How to lock your PC

Post 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)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

Re: How to lock your PC

Post 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... ?
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: How to lock your PC

Post 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
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
citystate
Enthusiast
Enthusiast
Posts: 638
Joined: Sun Feb 12, 2006 10:06 pm

Re: How to lock your PC

Post by citystate »

perhaps the Kiosk system mentioned here viewtopic.php?t=24100 may help - it has a method of locking out taskmanager
there is no sig, only zuul (and the following disclaimer)

WARNING: may be talking out of his hat
Post Reply