?
Solved

Disable keyborad input to desktop

Posted on 1999-01-04
3
Medium Priority
?
158 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 400 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

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

741 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