We help IT Professionals succeed at work.

Disabling the Ctrl+Alt+Del Keys

locoanh
locoanh asked
on
273 Views
Last Modified: 2010-05-03
How do I disable the 'Ctrl+Alt+Del' Keys in a VB 5.0 program, such as a screen saver.
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
locoanh:
check out:

https://www.experts-exchange.com/topics/bin/BuyPAQ?qid=10064569

dalin has already answered this.

Regards,
Sekans

Commented:
Actually, on second thought, I'm not sure if this will work in WIN95:

this is what Dalin posted:

ZENO,
Try this. let me know if you have any problems
Regards
Dalin

Private Const SPI_SCREENSAVERRUNNING = 97&

Private 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 AllowKeys(bParam as Boolean)

Dim lRetVal As Long, bOld As Boolean

lRetVal = SystemParametersInfo(SPI_SCREENSAVERRUNNING, bParam, bOld, 0&)

End Sub


To Call

AllowKeys(False)    ' Disable

AllowKeys(True)  'Enable

Commented:
This is the question Dalin was answering:

How can i disable the ctrl+alt+del combination in windows-95 .That is when a user presses this combination he gets a dialog box from where he can terminate any process. I don't want this to happen?can any body help me.I want the souurce code in visual basic using API functions.
Top Expert 2009

Commented:
Hi all,
You might also want to look up this code (it's for Win95). It's very easy way to do it.
http://www.codeguru.com/misc/disable_alt_tab.shtml

You can also think of creating a screensaver and start it password protected, but that's more a workaround.

Regards, Abel
Top Expert 2009

Commented:
Sorry, I didn't look carefull enought to the comments already posted. It's the same idea Dalin already uses in his code.

Commented:
locoanh,
If the code works for Win95, but not for NT.
If you are using Win95, you should reject the current answer and let Sekans relock the question, he/she desearves it.
Regards
Dalin
 

Commented:
locoanh,
If the answer I posted was correct, then you should ask Dalin to   lock the question as I simply reposted his previous answer.
Regards,
Sekans

Author

Commented:
Thanks!!! It worked.

Commented:
But you awarded the points to the wrong expert!

Author

Commented:
Sorry new to experts exchange. Please tell me how to lock the questions and redirect points to other experts.

Author

Commented:
Sorry, I'm new to experts exchange. Please tell me how to lock the questions and redirect points to other experts.

Top Expert 2009

Commented:
locoanh,
You already rewarded somebody with points, you gave him/her (subhashgarg) a "B". If you (next time) want to give a grade to somebody else then the one that answered your question, give the one that answered your question an "F" (="reject answer"). The question will then be "unlocked" and you can ask somebody else (let's say Dalin or Sekans) to re-answer the question. Then you can give him/her the points. After you give the points the question goes to PAQ (Previously Asked Questions) and only comments can be added. It can't be answered twice and you cannot give points to more then one expert.

Regards,
Abel
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.