Solved

Disable ctrl-alt-delete in win98

Posted on 2002-06-08
4
351 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

632 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