Annoying Windows keys

  • Thread starter Thread starter Semicolin
  • Start date Start date
S

Semicolin

Guest
Hi is they any way i can stop the stupid windows shortcuts like alt+f4 alt+tab Ctrl+Alt+Del etc? I want the user to be physically locked out (Btw it's not a virus or anything nasty) I've tried disabling input from mouse and keyboard without alot of luck because Ctrl+Alt+Del still works. Basically what i'm attempting to do is lock down my computer until my flash drive is inserted. Done most of it, it's just finding a way to lock my PC properly.

I've also tried:

Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long


Private Sub disablekeys(ByVal disable As Boolean)
SystemParametersInfo(97, disable, CStr(1), 0)
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
disablekeys(True)
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
disablekeys(False)
End Sub

But the word any is rejected and it don't work.



I'm stumped really. Any ideas?

Thanks

Continue reading...
 
Back
Top