Solved

Disable keyborad input to desktop

Posted on 1999-01-04
3
150 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how do i create updater to My Activex application? 3 95
zeroFront challenge 7 112
matchUp  challenge 9 115
How to convert MFC::CString to UTF8 wchar_t* 10 279
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.

860 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