javidmasti
asked on
Block Ctrl+alt+del
Hi,
I have a requirnment in my application when ever my application runs either in windows 98 or windows 2000 these controls should be disabled.
ctrl+alt+del
alt+tab
ctrl+esc
windows button
But alt+f4 should be enabled.
Iam Programming in VB 6
Plz help me
Thanks
Regards
Javid
I have a requirnment in my application when ever my application runs either in windows 98 or windows 2000 these controls should be disabled.
ctrl+alt+del
alt+tab
ctrl+esc
windows button
But alt+f4 should be enabled.
Iam Programming in VB 6
Plz help me
Thanks
Regards
Javid
This function should do it.
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
Code
Sub DisableCtrlAltDelete(bDisa bled As Boolean)
Dim X As Long
X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
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
Code
Sub DisableCtrlAltDelete(bDisa
Dim X As Long
X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
You CANNOT disable Ctrl-Alt-Del in any way shape or form on Windows NT. No matter how hard you try, this question has been asked many times here and elsewhere and there is NO solution to it that has yet been found.
yes thats true, in nt ctrl+alt+del is a considered its onwn interrupt
this is the only thing out there that will intercept it - its not free =[
http://www.meliorasoft.com/kits/keyboard/
this is the only thing out there that will intercept it - its not free =[
http://www.meliorasoft.com/kits/keyboard/
if you dont mind spending money
There are good ones out there
There are good ones out there
Try this site:
http://www.phord.com/keyblock.html
I've downloaded a demo and works in NT as well as 98/2000
Frank
http://www.phord.com/keyblock.html
I've downloaded a demo and works in NT as well as 98/2000
Frank
I am not sure about NT or Windows 98 but I know in windows xp there is a registry key to block the Task manager ( which is what you get after you press ctrl + alt + delete ). Not sure if that is what you wanted though.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://blackbeltvb.com/free/KEYHOOK.ZIP
also searching google for 'visual basic keyboard hook' will have more examples