Click here to Skip to main content
15,914,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[Message Deleted] Pin
ppatel56715-May-06 0:27
ppatel56715-May-06 0:27 
AnswerRe: losing my drawing from view .. :( Pin
khan++15-May-06 1:03
khan++15-May-06 1:03 
AnswerRe: losing my drawing from view .. :( Pin
Cedric Moonen15-May-06 1:18
Cedric Moonen15-May-06 1:18 
QuestionHow to create zipp folder having mutli files Pin
zahid_ash15-May-06 0:17
zahid_ash15-May-06 0:17 
AnswerRe: How to create zipp folder having mutli files Pin
zahid_ash15-May-06 0:22
zahid_ash15-May-06 0:22 
GeneralRe: How to create zipp folder having mutli files Pin
ThatsAlok15-May-06 0:35
ThatsAlok15-May-06 0:35 
Questionsending image to ActiveX Control Pin
satsumatable14-May-06 23:57
satsumatable14-May-06 23:57 
Questionlowlevel keyboard hook shouldn't block ctrl-button? Pin
decipherer_14-May-06 23:33
decipherer_14-May-06 23:33 
Ok, I hope I put this in the correct forum. Please bare with me as the question is rather long.
The development environment I am working in is Labwindows/CVI 6.0 (http://www.ni.com/lwcvi/) for the application and visual c++ 6.0 for the GINA.

For an application I was trying to lock the keyboard. Users could then unlock the keyboard by choosing a menu item after which a password box is displayed where a user can enter the password to unlock the keyboard.

I did this by creating a low level keyboard hook to catch all keys except ctrl-alt-del which cannot be intercepted this way. To make sure the password would not be blocked by the lock I would check if the password input field was the active control and if so, some keys would work (letters, numbers, backspace, enter)
To catch ctrl-alt-del I created a GINA stub based on the ginastub example in MSDN. I would then set a mutex in the application when it was locked. After pressing ctrl-alt-del the custom GINA would look for the mutex and block ctrl-alt-del if it found the mutex.

The problem was that when the keyboard was locked, after pressing ctrl-alt-del it wasn't possible anymore to give the password. The letters would just not appear on the screen. It took me some time to figure it out but the solution was to never block the ctrl button in the hook function.

Although I got the solution now I am very curious as to why it is necessary to never block the ctrl button.

I can post some sample code if required.


QuestionHELP FILE vc++ Pin
sudeep_br14-May-06 23:09
sudeep_br14-May-06 23:09 
AnswerRe: HELP FILE vc++ Pin
kk.tvm14-May-06 23:12
kk.tvm14-May-06 23:12 
AnswerRe: HELP FILE vc++ Pin
VinayCool14-May-06 23:12
VinayCool14-May-06 23:12 
AnswerRe: HELP FILE vc++ Pin
Ștefan-Mihai MOGA14-May-06 23:51
professionalȘtefan-Mihai MOGA14-May-06 23:51 
GeneralRe: HELP FILE vc++ Pin
sudeep_br14-May-06 23:19
sudeep_br14-May-06 23:19 
GeneralRe: HELP FILE vc++ Pin
VinayCool15-May-06 0:27
VinayCool15-May-06 0:27 
AnswerRe: HELP FILE vc++ Pin
VinayCool15-May-06 0:28
VinayCool15-May-06 0:28 
GeneralRe: HELP FILE vc++ Pin
NiceNaidu15-May-06 1:43
NiceNaidu15-May-06 1:43 
GeneralRe: HELP FILE vc++ Pin
sudeep_br15-May-06 4:43
sudeep_br15-May-06 4:43 
AnswerRe: HELP FILE vc++ Pin
Hamid_RT15-May-06 4:23
Hamid_RT15-May-06 4:23 
GeneralRe: HELP FILE vc++ Pin
sudeep_br15-May-06 4:50
sudeep_br15-May-06 4:50 
AnswerRe: HELP FILE vc++ Pin
Russell'15-May-06 5:17
Russell'15-May-06 5:17 
GeneralRe: HELP FILE vc++ Pin
sudeep_br15-May-06 6:40
sudeep_br15-May-06 6:40 
GeneralRe: HELP FILE vc++ Pin
Russell'16-May-06 23:14
Russell'16-May-06 23:14 
QuestionHand cursor on static box Pin
Aryan S14-May-06 22:57
Aryan S14-May-06 22:57 
AnswerRe: Hand cursor on static box Pin
Nishad S14-May-06 23:28
Nishad S14-May-06 23:28 
GeneralRe: Hand cursor on static box Pin
Nibu babu thomas15-May-06 0:00
Nibu babu thomas15-May-06 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.