![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Mar 2006
Posts: 36
Rep Power: 0
![]() |
CTRL - ALT - DEL Question in VB
Ok, To the point,
Is there any way I can disable CTRL - ALT - DEL in my program? So when the program is running you cannot use CTRL - ALT - DEL on it? Thanks, Reuben Keeney |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
The three finger salute is part of the windows security mechanism, so disabling it is not recommended (as it leaves a security hole, which malicious programs can exploit). There comes a point where you have to trust your users when you give an instruction "Do not terminate this program".
|
|
|
|
|
|
#3 | |
|
Professional Programmer
|
You can disable it within the windows registry. Good luck.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Mar 2006
Location: USA
Posts: 9
Rep Power: 0
![]() |
As already stated, its dangerous but it can be done. I made a program to mess with people that did this. Great for being annoying but no real purpose. Anyway, i got it to work on windows 98 but on 2000 it didn't work.
Public Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Long, ByVal fuWinIni As Long) As Long 'Declare this windows api 'code to disable it SystemParametersInfo(97, true, CStr(1), 0) 'code to enable it SystemParametersInfo(97, false, CStr(1), 0) |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4
![]() |
|
|
|
|
|
|
#6 |
|
Programming Guru
![]() |
If you can't get that to work, you can always make a second executable that makes sure the first is always running. The user would have to systematically task kill both at the same time with their own script.
|
|
|
|
|
|
#7 | |
|
Professional Programmer
|
You could also use dll injection, but that would probably be a little difficult for you. It's a nice thing to read up on though, neat process.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#8 |
|
Programmer
Join Date: Mar 2006
Posts: 36
Rep Power: 0
![]() |
yeah,thanks for the quick response as usual..
Thanks again! You all have been great help Reuben Keeney |
|
|
|
|
|
#9 |
|
Expert Programmer
|
People always seem to do this the hard way
. I've always found that if you don't want people to see the task manager, then all you have to do is have a timer set to look for the window. If it finds it close it. it can be done with the FindWindow API, and one other which i can't remember. It essentially gives the same results, and it's much easier. |
|
|
|
|
|
#10 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
I don't know VB, but couldn't you simply have a local hook or something?
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|