Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Disable Ctrl+Alt+Del

Author
Message
Shady Simpson
22
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 3rd Apr 2003 18:47
hi,

how can you disable Ctrl+Alt+Del when your program is running.

I'm trying to make like a sort of password checker. I've got all the programmin done, now the only problem is you can press Ctrl+Alt+Del and close it.

Please Help.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Apr 2003 20:39
No, you shouldn't try to block CTRL+ALT+DEL at all...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 3rd Apr 2003 21:46
To logon like Win NT?

The only way to do that will be to get your program to access the keyboard before windows does - it's not exactly native when working under direct input. You will need to access the keyboard directly and if you can get that far, stopping windows from reading the keyboard will be easy.

DBPro isn't designed for this sort of direct hardware access, infact, it's specifically the opposite.

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
Shady Simpson
22
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 3rd Apr 2003 22:28
what do you mean access the keyboard before windows does?
How Could I do that?

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Apr 2003 23:17
You can hook the CTRL+ALT+DEL (with NT/2000 anyway), before Windows get to it. You shouldn't do it though.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
KamaKase
22
Years of Service
User Offline
Joined: 29th Oct 2002
Location:
Posted: 3rd Apr 2003 23:24
The only way to avoid it in DBPro I could see, is to have a scancode for each of CTRL and ALT, then if they're pressed, make it run some code which doesn't work. Which will crash the comp. And make them restart.

Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 4th Apr 2003 00:36 Edited at: 4th Apr 2003 00:36
Quote: "How Could I do that?"


DBPro is a directX programming language, therefor using Direct Input - which is higher level than Windows, therefor Windows will get to the keyboard first.

If you want to take direct control of the keyboard you will have to leave the realm of directX and DBPro.

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
cusoi
22
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 4th Apr 2003 00:40
In Delphi it's pretty easy. I've done it many times before. I made some 'Operation systems'. They were just full screen windows applications that you couldn't quit with control alt delte or ctr+esc, etc. Just buy Delphi and download some components.

Pentium IV 2.4 GHZ 256 MB Ram Geforce 4 TI 4200 128 MB
www.cuso.tk
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 4th Apr 2003 00:40
DISABLE SYSTEMKEYS

- It works on Windows 98, but not on Windows XP.

Current Project: Retro Compo. Entry.
the_winch
22
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 4th Apr 2003 00:55
I hate programs that do that, Just because if something goes wrong I have to turn the computer off and on at the switch insted of just Ctrl+Alt+Del and closing the offending program.

Add to that messing with the users sytem without their permission is not very nice.

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 4th Apr 2003 01:18
"Add to that messing with the users sytem without their permission is not very nice"

Surely they should just not run the program then?

Current Project: Retro Compo. Entry.
Galiem
22
Years of Service
User Offline
Joined: 27th Nov 2002
Location: United States
Posted: 4th Apr 2003 01:57
Yeah it's a bad idea to do that, just under general programming ethics. ctrl + alt + del is soemetimes the only way to end a program that has your PC making like a hamster in a wheel.

Shady Simpson
22
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 4th Apr 2003 19:27
Right, Thanx,

I'm still just experimenting and I didn't know it would cause so much trouble.

malcom2073
22
Years of Service
User Offline
Joined: 12th Mar 2003
Location:
Posted: 4th Apr 2003 20:47
Arent there any dll's that allow you to capture system events? I know directX cant, but with the help of a dll written in say.. c++ it might be able to right?

MiniMark
22
Years of Service
User Offline
Joined: 21st Mar 2003
Location: Australia
Posted: 5th Apr 2003 09:34
If you can write a dll in visual basic there is an api call which can turn off ctrl alt delete and re-instate. Try some where like vbworld for the routine. It can be done.

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 5th Apr 2003 10:18
Getting VB DLLs to work with DBP isn't easy as they aren't proper DLLs.

Current Project: Retro Compo. Entry.
Eponick
22
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 5th Apr 2003 10:23 Edited at: 5th Apr 2003 10:23
Shouldnt do it, Ctrl+Alt+Delete is on the computer for a reason. Like being able to quit a program if it stops respoding..

Login to post a reply

Server time is: 2025-05-14 05:59:17
Your offset time is: 2025-05-14 05:59:17