Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 26th, 2006, 6:01 AM   #1
ReubenK
Programmer
 
ReubenK's Avatar
 
Join Date: Mar 2006
Posts: 36
Rep Power: 0 ReubenK is on a distinguished road
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
ReubenK is offline   Reply With Quote
Old Mar 26th, 2006, 6:47 AM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5 grumpy is on a distinguished road
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".
grumpy is offline   Reply With Quote
Old Mar 26th, 2006, 9:42 AM   #3
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
You can disable it within the windows registry. Good luck.
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
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!
jayme is offline   Reply With Quote
Old Mar 26th, 2006, 9:37 PM   #4
jeffball55
Newbie
 
Join Date: Mar 2006
Location: USA
Posts: 9
Rep Power: 0 jeffball55 is on a distinguished road
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)
Again this may not work, but thought i would tell you about it.
jeffball55 is offline   Reply With Quote
Old Mar 26th, 2006, 9:49 PM   #5
tayspen
Hobbyist Programmer
 
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4 tayspen is on a distinguished road
Have a look here.

http://www.vbforums.com/showthread.php?t=340597
tayspen is offline   Reply With Quote
Old Mar 26th, 2006, 9:54 PM   #6
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,885
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is online now   Reply With Quote
Old Mar 26th, 2006, 10:57 PM   #7
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
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:
Originally Posted by Mohamed Jihad
Durka durka!
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!
jayme is offline   Reply With Quote
Old Mar 27th, 2006, 10:10 AM   #8
ReubenK
Programmer
 
ReubenK's Avatar
 
Join Date: Mar 2006
Posts: 36
Rep Power: 0 ReubenK is on a distinguished road
yeah,thanks for the quick response as usual..
Thanks again!
You all have been great help
Reuben Keeney
ReubenK is offline   Reply With Quote
Old Mar 31st, 2006, 12:37 AM   #9
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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.
Booooze is offline   Reply With Quote
Old Mar 31st, 2006, 3:01 PM   #10
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
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
Mjordan2nd is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:49 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC