Disable CTRL-ALT-DEL and ALT-TAB, Windows Key etc in NT/2000
Hello ppl
Is it possible to block usage of CTRL-ALT-DEL, ALT-TAB, the Windows key etc in Windows NT/2000? I have Karl Moore's code for Windows 9x based platforms which works perfectly for those OS's but it doesn't work for WinNT and Win2k. Any ideas?
The Windows 9x based code was:
VB Code:
Private Const SPI_SCREENSAVERRUNNING = 97
Declare Function SystemParametersInfo Lib "user32" _
Alias "SystemParametersInfoA" (ByVal uAction As _
Long, ByVal uParam As Long, lpvParam As Any, ByVal _
fuWinIni As Long) As Long
Public Sub EnableTaskKeys(Enabled As Boolean)
If Enabled = False Then
'Disable task keys
SystemParametersInfo SPI_SCREENSAVERRUNNING, 1&, 0&, 0
Else
'Enable task keys
SystemParametersInfo SPI_SCREENSAVERRUNNING, 0&, 0&, 0
End If
End Sub
then
VB Code:
' To disable task keys
Call EnableTaskKeys(False)
to disable the task keys, and:
VB Code:
' To enable task keys
Call EnableTaskKeys(True)
to re-enable them.
TIA.