Solved

how to replace the code behind the alt-tab and crtl+esc system hotkeys with my own

Posted on 1997-03-26
1
225 Views
Last Modified: 2013-12-03
hi.

I was wondering how a person would go about replacing the
functionality/code implemented behind the ctrl+esc and the alt+tab system hot keys used by Windows NT4.0 with their own?

I have used setWindowsHookEX to hook in and trap any keystrokes I would like, but it is tooooo far down the hook chain for me to stop or replace the ctrl+esc and the alt+tab normal NT4.0 system hot keys code/functionality.   My hooks never get the message.

Please respond with code snippets on how I would catch the system hotkeys before NT processes them and how I would go about inserting my code.

Thanks very much!  Much appreciated!

regards,


Colin Catlin

ccatlin@mayo.edu  
0
Comment
Question by:ccatlin
1 Comment
 
LVL 2

Accepted Solution

by:
sapek earned 120 total points
ID: 1334276
Documentation for CBT hook says you can "(...)prevent task switching by means of hot keys.". I nver tried that however so I can get a sample code. Please look at SDK documentation for CBTProc and experiment.
If you have probelms with CBT hook itself I may be able to help you (I have some experience with it).

Adam
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video discusses moving either the default database or any database to a new volume.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now