|
-
Aug 17th, 2001, 04:50 AM
#1
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.
-
Aug 17th, 2001, 11:04 AM
#2
Or if that's impossible, is it possible to acknowledge when CTRL-ALT-DEL etc is pressed under Windows NT/2000?
Thanks.
-
Aug 17th, 2001, 11:15 AM
#3
Frenzied Member
I asked this question a few days ago. Tygur says its impossible, so it probably is
You just proved that sig advertisements work.
-
Aug 17th, 2001, 11:24 AM
#4
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?
-
Aug 17th, 2001, 11:26 AM
#5
Frenzied Member
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.
-
Aug 17th, 2001, 11:26 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|