Results 1 to 6 of 6

Thread: Disable CTRL-ALT-DEL and ALT-TAB, Windows Key etc in NT/2000

  1. #1
    j2k
    Guest

    Unhappy 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:
    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.

  2. #2
    j2k
    Guest
    Or if that's impossible, is it possible to acknowledge when CTRL-ALT-DEL etc is pressed under Windows NT/2000?

    Thanks.

  3. #3
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    I asked this question a few days ago. Tygur says its impossible, so it probably is
    You just proved that sig advertisements work.

  4. #4
    j2k
    Guest
    Okay thanks

    Is it possible, however to call the "Lock Computer" option which is built into NT/2000 (CTRL-ALT-DEL then choose Lock Computer) in VB?

  5. #5
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    I would imagine that thats possible through APIs. You might want to post on the API forum. Of course, most people who look on that forum look here to...
    You just proved that sig advertisements work.

  6. #6
    j2k
    Guest
    Okay - thanks for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width