Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Disabling the Ctrl+Alt+Del Keys

Posted on 1998-07-29
13
255 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.
0
Comment
Question by:locoanh
  • 4
  • 3
  • 3
  • +2
13 Comments
 

Accepted Solution

by:
subhashgarg earned 100 total points
ID: 1467109
It is not possible to disable ctl+alt+delete under NT. NT assures that when you press these keys, it is handled by the
NT security manager.

0
 
LVL 1

Expert Comment

by:Sekans
ID: 1467110
locoanh:
check out:

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

dalin has already answered this.

Regards,
Sekans
0
 
LVL 1

Expert Comment

by:Sekans
ID: 1467111
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
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 1

Expert Comment

by:Sekans
ID: 1467112
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.
0
 
LVL 39

Expert Comment

by:abel
ID: 1467113
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
0
 
LVL 39

Expert Comment

by:abel
ID: 1467114
Sorry, I didn't look carefull enought to the comments already posted. It's the same idea Dalin already uses in his code.
0
 
LVL 9

Expert Comment

by:Dalin
ID: 1467115
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
 
0
 
LVL 1

Expert Comment

by:Sekans
ID: 1467116
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
0
 

Author Comment

by:locoanh
ID: 1467117
Thanks!!! It worked.
0
 
LVL 9

Expert Comment

by:Dalin
ID: 1467118
But you awarded the points to the wrong expert!
0
 

Author Comment

by:locoanh
ID: 1467119
Sorry new to experts exchange. Please tell me how to lock the questions and redirect points to other experts.

0
 

Author Comment

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

0
 
LVL 39

Expert Comment

by:abel
ID: 1467121
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
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
using Access 8 75
Saving history changes to sub form 4 48
Windows Script Host failed (Access is denied.) error 6 222
VBA Shell can't Find Word document 11 112
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question