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:
  1. Private Const SPI_SCREENSAVERRUNNING = 97
  2.  
  3. Declare Function SystemParametersInfo Lib "user32" _
  4.     Alias "SystemParametersInfoA" (ByVal uAction As _
  5.     Long, ByVal uParam As Long, lpvParam As Any, ByVal _
  6.     fuWinIni As Long) As Long
  7.  
  8. Public Sub EnableTaskKeys(Enabled As Boolean)
  9.  
  10. If Enabled = False Then
  11.     'Disable task keys
  12.     SystemParametersInfo SPI_SCREENSAVERRUNNING, 1&, 0&, 0
  13. Else
  14.     'Enable task keys
  15.     SystemParametersInfo SPI_SCREENSAVERRUNNING, 0&, 0&, 0
  16. End If
  17.  
  18. End Sub

then

VB Code:
  1. ' To disable task keys
  2. Call EnableTaskKeys(False)
to disable the task keys, and:

VB Code:
  1. ' To enable task keys
  2. Call EnableTaskKeys(True)

to re-enable them.

TIA.