PDA

Click to See Complete Forum and Search --> : KeyDown


CyberCarsten
Nov 6th, 1999, 04:27 PM
HI!
How do i make a program that comes with an error when CTRL+ALT+DEL is pressed.
I have tried the KeyDown, but it didn't work.

/ CyberCarsten

Nov 6th, 1999, 09:02 PM
your going to have to find a way to intercept the warm re-boot irq, before windows gets it. good luck, it is possible, maybe its worth going back through the postings on this site a few weeks.

------------------

Wossname,
Email me: wossnamex@talk21.com :)

Phobic
Nov 6th, 1999, 09:59 PM
Actually, you could do it really easily, but not as direct as the method you were looking for...

Checkout this tip (http://www.vb-world.net/api/tip33.html) in VB-World on how to disable Ctrl+Alt+Del by making the machine think the screen saver is running. Then use the GetAsyncKeyState or better yet the GetKeyState (I think?) API to determine which keys are being pressed; meaning you are looking for the combination of control+alternate+delete. If those keys are being pressed, display your error message.

SteveS
Nov 7th, 1999, 08:17 AM
1 solution would be.

In the Tips Section of VB-World. Find the Tip telling you how to disable Ctrl+Alt+Del.

Then create a timer: Interval=100

Use the following API

Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

to check for 3 keys, Ctrl,Alt & Del and if true then ...

Steve.