how to capture other 3 keyboard of 104 keyboard ?

I 'm programming a program ,which require that when it start ,user can't switch to other program.
  how to capture the keyboard such as "ALT+TAB" ,"ALT+F4",and other 3 keyboard of 104 keyboard ,and let it do nothing ?
jancookAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZoppoCommented:
Hi jancook,

You can use RegisterHotKey for a lot of them (not all, i.e. CTRL-ALT-DEL or CTRL-SHIFT-ESC can only be hooked by writing an own gina.dll or something), i.e.:

// hWnd should be the handle of the main window of your app
ret = RegisterHotKey( hWnd, 1, MOD_ALT, VK_TAB );
ret = RegisterHotKey( hWnd, 2, MOD_ALT, VK_F4 );

Then you can override your window's OnHotKey() to handle these keys or to do nothing.

hope that helps,

ZOPPO
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jancookAuthor Commented:
how about other three additonal key of 104 keyboard (the standard keyboard is 101 keyboard ) ,how to deel with it ?
0
ZoppoCommented:
Which keys do you mean?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.