Solved

Disable CTRL+ESC Keys using C++/ MFC

Posted on 2002-05-13
5
984 Views
Last Modified: 2013-11-20
I want to diable the following key combinations for my MFC application.

1. CTRL-ESC
2. Windows key
3. CTRL-ALT-DEL
4. ALT-F4

How can I do it? Would appreciate if pseudo code/ sample code could be provided.
If there are any registry tweeks to disable these keys, I don't mind using those...

Thanks in advance.
0
Comment
Question by:rakhigovil
[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
5 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 24 total points
ID: 7005523
u cannot disable Ctrl+Alt+Del.

Other can be disable by overriding WM_SYSKEYDOWN.

Or u can register hot keys for this keys using the api RegisterHotKey

GOOD LUCK
0
 
LVL 31

Assisted Solution

by:Zoppo
Zoppo earned 23 total points
ID: 7005703
AFAIK the only way to disable CTRL-ALT-DEL is to implement your own
GINA.DLL which replaces the GINA.DLL which is distributed with Windows
and use your own one as wrapper to call GINA.DLL's functions.

But, I think this should only be done if there's a really serious reason to do
this and not just for fun ... it maybe dangerous to do this because a bug in the
new GINA.DLL may leave an unusable system.
0
 
LVL 3

Assisted Solution

by:Crius
Crius earned 23 total points
ID: 7006454
Changing Gina.dll is not a good idea.

You can, however (as far as I know) hook the DLL, but it'll take a lot of research. Hooking is not quite as bad as changing the DLL, but it can lead to many of the same problems as actually changing the DLL.

A good tutorial on hooking can be found at
http://www.codeguru.com/system/apihook.html .
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

707 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