Solved

Disable ctrl-alt-delete in win98

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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…
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 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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now