Solved

Disable ctrl-alt-delete in win98

Posted on 2002-06-08
4
347 Views
Last Modified: 2008-03-10
Hello,

How can I disable ctrl-alt-delete and other system keys in win98?

thanks in advance!
0
Comment
Question by:Graphics_DB
[X]
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
  • 2
4 Comments
 

Expert Comment

by:magellanLS
ID: 7064786

the following code tricks windows ,so that windows thinks a screen saver is running

UINT nPreviousState;
SystemParametersInfo (SPI SETSCREENSAVERRUNNING, TRUE,&nPreviousState, 0);// Disables

SystemParametersInfo (SPI SETSCREENSAVERRUNNING, FALSE,&nPreviousState, 0); // Enables

If you want to do this in win/nt/xp/2k you have to create a keyboard filter driver

Good Luck!

0
 

Accepted Solution

by:
magellanLS earned 70 total points
ID: 7064787
Oh sorry, there are some mistakes in the code

here is the correct code:

UINT nPreviousState;
SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, TRUE,&nPreviousState, 0);// Disables

SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, FALSE,&nPreviousState, 0); // Enables

0
 

Author Comment

by:Graphics_DB
ID: 7064791
It works :-) thanks
0
 
LVL 22

Expert Comment

by:nietod
ID: 7064834
Doesn't that dissable ALL keys?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

751 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