i need some code to Completlty Lock out the Windows Start Bar ("maybe even enabled thru a password" even the Windows
Key needs to be Locked... Please help
If you trying to restrict access to various parts of the operating system, applications etc it sounds as though you would be better off looking at Policies. There is plenty of information in MSDN about Policies.
[enter sarcasm mode]
Another alternative to an infinite loop (and perhaps better programming practice) would be infect the machine with a fatal virus, or set fire to the machine or to electrocute the user through software!
[/sarcasm]
I'm sure that you meant your comment as a joke, but that sort of joke can go seriously wrong if your intended victim is not experienced enough to recognize it as a joke!
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
As far as I know the windows key cannot be temporarily be disabled while you run your program and afterward be enabled using only VBA code. I have working code under VB6 that uses a low level keyboard hook to lock the windows key. But a VBA program doesn't support this (as far as I know).
There is however a registry entry for win 2000 that disables the key forever (or until you re-enable it again). But setting this entry requires a re-boot. Let me know if you need the registry entry (Though it can be easily found using google)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.