Solved

Disable keyborad input to desktop

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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Complete beginner needs help making a cron job 9 133
dog bark java program 15 130
countEvens challenge 2 117
ERP and the other system process verification 5 25
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‚Ķ
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

734 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