Archived

This topic is now archived and is closed to further replies.

feshmania

Visual Basic - disabling ALT+CTRL+DEL

Recommended Posts

I can''t seem to disable ALT+CTRL+DEL...anybody know the code? I''ve tried some code I saw online, but nothing worked...I was thinkning that the code might be different for Windows XP...if anyone can help...great... Thanks feshMANIA hey how you doin''''?

Share this post


Link to post
Share on other sites
I could be wrong but I wouldn''t have thought it would be possible to disable CTRL+ALT+DEL under an NT based operating system.

I thought the operating system intercepted the CTRL+ALT+DEL key sequence, to make sure that people can''t just write programs that look like the login box for the purpose of stealing passwords.

Why would you want to disable it anyway?

Share this post


Link to post
Share on other sites
Im putting another password protect on my computer so I dont want people to be able to just terminate the program

feshMANIA

hey how you doin''''?

Share this post


Link to post
Share on other sites
I could be wrong here, and I''m sure someone more knowledgable will correct me, but I think you''d need to write a service or driver for something like that (on an NT based OS anyway).

Share this post


Link to post
Share on other sites
Why do you need another password protect? What''s the point?
NT (XP) already does that for you. It seems pointless. o_O

Log in to the computer as a "crippled" user who doesn''t have
administrative priviledge (so he can''t run task manager or
other fun things) with your program running.

The whole idea of disabling Ctrl-Alt-Del is just WRONG .



Kami no Itte ga ore ni zettai naru!

Share this post


Link to post
Share on other sites
you could just remove it from the programs running list. then if someone does press it your program will not be listed.

maybe.

I think it can be done.

Share this post


Link to post
Share on other sites
Removing CTL+ALT+DEL is very usefull... Say you are writing a program or shell for a company that lets users brows the web or play a game but not have any access to the rest of the computer. Like if I wanted to allow walk up visitors to browse my wesite from terminal. I would want to dissable CTL+ALT+DEL. That would be the first thing somone would try. And then maybe ALT+F4.

Anyway, my point is I have seen it done and Its a reasonable problem. I dont know how to do it myself, but keep looking...

Share this post


Link to post
Share on other sites
umm, you can using the win32api



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 DisableCRTL_ALT_DEL()
Dim ret As Integer
Dim pOld As Boolean
ret = SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, pOld, 0)
End Sub

Share this post


Link to post
Share on other sites
umm, you can using the win32api



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 DisableCRTL_ALT_DEL()
Dim ret As Integer
Dim pOld As Boolean
ret = SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, pOld, 0)
End Sub

Share this post


Link to post
Share on other sites
I tried that API, but in XP it doesnt work...

I also understand that in certain cases (ie password stealing) this could be wrong, but this only for my computer...I want it to prevent idiots in my dorm building from touching my computer if one of my roommates or I forget to lock our door...I really need help on this for two reasons:

1) I just want to finish this stupid program
2) I just want a security that you cant get into thru Safe Mode...

thanks

feshMANIA

hey how you doin''''?

Share this post


Link to post
Share on other sites
Lock your computer in a box and hope you bolted the box
tight enough that it can''t be ripped off with your
computer inside .

Seriously.



Kami no Itte ga ore ni zettai naru!

Share this post


Link to post
Share on other sites
quote:
Original post by Liquid Darkness
Removing CTL+ALT+DEL is very usefull... Say you are writing a program or shell for a company that lets users brows the web or play a game but not have any access to the rest of the computer. Like if I wanted to allow walk up visitors to browse my wesite from terminal. I would want to dissable CTL+ALT+DEL. That would be the first thing somone would try. And then maybe ALT+F4.

Anyway, my point is I have seen it done and Its a reasonable problem. I dont know how to do it myself, but keep looking...


No, it''s not reasonable.

The right solution is to run your demo machine as a
really crippled user with no priviledge. Edit the
policies to suit your needs.

Isn''t that much easier than trying to disable
CTRL-ALT-DEL?



Kami no Itte ga ore ni zettai naru!

Share this post


Link to post
Share on other sites
I don''t have any experience with XP but if it''s anything like the other NT OSs (NT/2K) then without your username/password no one can access anything anyway. And with Win2K you can just password protect your screensaver and set it to run after 1 min. of idle time. This way when anyone tries to get to the system they have to know a valid username/password to get past the screensaver.

Share this post


Link to post
Share on other sites
whats rong with u people
nothing is rong with disabling control alt delete in windows whatever the version is. I was struggling with this at one point aswell and i found a very useful bit of registry code that can do this.
Just use yout program to add this key to the registry.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableTaskMgr"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\]
"DisableTaskMgr"=dword:00000001

these two will disable control alt delete

to re-enable it you will need these keys:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableTaskMgr"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalUser\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableTaskMgr"=dword:00000000
"**del.DisableTaskMgr"=" "

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\]
"DisableTaskMgr"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DisableCAD"=dword:00000000




you wont need them all depending on how you want to disable it. eg. for all users or just for one or whatever.


Hope this help


KdCtTg

Share this post


Link to post
Share on other sites
quote:
Original post by feshmania
I also understand that in certain cases (ie password stealing) this could be wrong, but this only for my computer...I want it to prevent idiots in my dorm building from touching my computer if one of my roommates or I forget to lock our door...
So just log off or lock the computer (WinKey + L). Safemode on XP is password protected (assuming you set the Administrator password.)


"The ability to speak does not make you intelligent" - Qui-Gon Jinn
[ DGDev - The Delphi Games Development Community ] [ Help GameDev.net fight cancer ] [ Shareaza - The Ultimate P2P Client ]

Share this post


Link to post
Share on other sites
quote:
Original post by tangentz
quote:
Original post by Liquid Darkness ...
Anyway, my point is I have seen it done and Its a reasonable problem. I dont know how to do it myself, but keep looking...


No, it's not reasonable.

The right solution is to run your demo machine as a
really crippled user with no priviledge. Edit the
policies to suit your needs.

Isn't that much easier than trying to disable
CTRL-ALT-DEL?



No, that is the wrong solution for a demo kiosk because the point is to keep the demo kiosk machine playing your demo unattended. If the user can exit the program the expensive demo kiosk for your game has been transformed into a demo kiosk for the windows desktop until someone comes along to fix it.

Requirement: machine runs this application all the time and this application only.

Solution: Don't let user exit or minimize the application without secret keycombo only given to trusted people. Ideally physically secure the computer as well.

Best part is that this turns any computer they happen to have into a demo kiosk without requiring any knowledge from the trusted users (retail employees, marketing people). They just start the demo up, and do whatever wierd key combo password there is to turn it off.

I can think of other solutions, but none of them seem like less work. Maybe you could write a program that tries to restart or maximize your app if the user quits or minimizes?

Hmm so per that article it would seem that in a full screen application there is no way to absolutely keep it running. Best you can do is that ctrl-alt-del gives you that "Task Manager disabled" dialog and an OK button. Wonder what happens after you click Ok? Goes to desktop, fullscreen app minimized?

[edited by - JeffF on March 19, 2004 4:30:50 PM]

[edited by - JeffF on March 19, 2004 4:35:12 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You shouldn''t do this. If your game does this it sucks, and so do you.

Share this post


Link to post
Share on other sites