Trapping System Keys.

How to trap  Alt + tab   keys  in SDI  application.
Who is Participating?
galkinConnect With a Mentor Commented:
You need to setup system keyboard hook with SetWindowsHookEx with WH_KEYBOARD as idHook.
I have fogotten to mentioned hook procedure must be implemented in DLL only.
madhiAuthor Commented:
I had  tried with SetWindowsHookEx(). Am unable to trap Alt+Tab keys.If possible give me a sample code. I would be very thankful to you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.