Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Ctrl Alt Del keys?

Status
Not open for further replies.

clear88

Programmer
Joined
Nov 29, 2001
Messages
24
Location
CN
Hi there,

Is there a way to disable the Ctrl + Alt + Del keys and release it later?

I found these links->
can I convert it to dll call function?

cheers
 
Hi,

This should do the trick, but it doesn't work in WinXP or Win2k. You could search at MSDN for other parameters which will disable them for these environments, I know there is one which will disable ALT-TAB and CTRL-ESC for sure, but I don't know if you can disable CTRL-ALT-DEL. I guess the best thing to do this is by filtering the Key combination with a system wide hook.

[tt]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 Const SPI_SCREENSAVERRUNNING = 97

Private Sub HideCtrlAltDel(ByVal fBool As Boolean)
Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, IIf(fBool, 1&, 0&), 0&, 0)
End Sub[/tt]

LuCkY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top