Solved

Disable ctrl-alt-delete in win98

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

770 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