Solved

Disable keyborad input to desktop

Posted on 1999-01-04
3
147 Views
Last Modified: 2013-11-20
I am trying to freeze the whole windows for security implementation, like developing a system wide modal dialog.
The problem I am facing is I cannot disable the keyboard input to the taskbar (Ctrl-Esc) and (Ctrl-Alt-Del).
Please help.
0
Comment
Question by:lawrencekoo
3 Comments
 
LVL 1

Expert Comment

by:The_Brain
ID: 1327165
suppose you could try, PreTranslateMessage(MSG *pMsg)
and if VK_CTRL or something in that effect.  (otherwise get a more sophisticated method.)
Mine is primitive but it seems to work.
0
 
LVL 5

Accepted Solution

by:
jamoville earned 200 total points
ID: 1327166
You can create a global hook by use of the SetWindowsHookEx function to monitor for the key strokes you don't want to be used.

SetWindowsHookEx(WH_KEYBOARD, GetKeyboardMSG, hinstance, threadID/*this would be null for a global hook*/)
0
 

Author Comment

by:lawrencekoo
ID: 1327167
tried it,
The command work alright in disabling keyboard input to all windows but it still can't contain Ctrl-Alt-Del
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video discusses moving either the default database or any database to a new volume.

759 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

18 Experts available now in Live!

Get 1:1 Help Now