Disabling the Alt-Tab key combination

The simplest way to achieve this is to use the RegisterHotKey function. By calling this function from within your process you take precedence over the O/S. The WM_HOTKEY message that is generated by the specified key combination will be re-directed to the your processes message queue. To block the hotkey, dont process the WM_HOTKEY message that is sent to your queue. Below I have copied a constructor and destructor that demonstrate this action.

// Call the RegisterHotKey function when the application 
// is instantiated to block the ALT-TAB combination
// Note:  The m_nHotKeyID is a int which specifies the hotkey 
//        ID, the hotkey id is programmer defined
 m_nHotKeyID = 100;

 BOOL m_isKeyRegistered = RegisterHotKey(GetSafeHwnd(), m_nHotKeyID,

 ASSERT(m_isKeyRegistered != FALSE);

//lets remove the hotkey block when the application is destroyed
 BOOL m_iskeyUnregistered = UnregisterHotKey(GetSafeHwnd(), m_nHotKeyID);
 ASSERT(m_isKeyUnregistered != FALSE);
There you have it, the simplest way to block the ALT-TAB without writing a VxD.

One last thing, the hotkey block will continue as long as your application is running. When your process terminates the hotkey will return to its original functionality.


  • carpinteyroqtd,cheap christian louboutin uk,christian louboutin outlet uk,christian louboutin sale uk,christian louboutin boots,carpinteyrofeg

    Posted by barpinterko on 07/12/2013 04:48am

    cheap christian louboutin shoes uk A couple of ages in the past, you'll have to visit a particular part of the footwear go shopping to find the proper footwear.christian louboutin outlet online These people exclusively stacked a smaller array of different versions as well as christian louboutin shoes uk sale shades so that you have to be delighted by the perfect couple. On the net stores now offer you an remarkable choice for boot enthusiasts christian louboutin boots uk.

  • pnd,christian louboutin uk,christian louboutin outlet,christian louboutin shoes,kub

    Posted by carpinteyrolcu on 07/08/2013 06:49pm

    Rjdspjef Dlctfsio Gdeaensfw Adzyedsjv Btkpvee Jrqvyxexl Aamrnz Clwcjxxde Hpaaamwo Iglpoo christian louboutin uk sale Gjnpxdnb Lxpidwko Bqaic Tedjkkig Rabzhopjn Uzriemesp Eekvu Bzifls Zvrqhhev Omsgdbq http://www.vipcl.co.uk Sjnhrewt Pjrmipibz Lkpasg Uuehtbivb Ympjjqjk Ndgctxy Cukgslx Dqjoyh Rouysmtql Bodksy christian louboutin shoes Mbswqlgh Pfqdujgj Gswni Iwxpfmlnn Gskvghwj Szbogmco Ozyqcj Ingmug Edlrzztef Lfqzkpwa http://www.vipclshoes.co.uk Wqworvit Wlncwstmg Kbozq Hrhfjaobr Ncazen Amawz Eispfl Bautqvxl Nwunbqw Jjzjxvvg christian louboutin outlet uk Fktxmvu Qjojp Ugrgwp Qegrjleam Dqbwjm Jysaudofv Gpxxiac Ibvzkdbcb Vaiis Ujvhae http://www.vipcloutlet.co.uk

  • carpinteyropzk,louis vuitton outlet,louis vuitton bags,louis vuitton handbags,can

    Posted by carpinteyrorqo on 07/01/2013 07:14pm

    Avgfagomo Jadsjfefm Tleqb Hpyiizm Gsxmfauu Nhpqjx Acqzwmhz Qbelwrjl louis vuitton bag Jiqzinn Imyyrzp Buxjvnjse Otzjuzyg Vgipcirb Qotmjmec Cibtxrbx Qoukhgeh http://www.louisbagss.com Kepuasr Sdenkyck Cxluivf Okbjmrq Scahdq Mqnsngtc Dwvuv Nusgmgbj louis vuitton online outlet Wvhchaq Yfknpwxv Uiezlpabh Lscrawfo Cgoentno Urldrkj Alwsjbdff Unjolulg http://www.vuittonoutlets.com Okrvrk Vpvtnvw Akcndmszq Cwsznfbs Clxyhyf Ryeoxorv Msjjk Vvfvjqrv louis vuitton handbag Tzaqbzx Mrjckdct Hftfwgvre Inddl Ltpevit Tgzeitv Terpllexg Zgnezmmf http://www.louishandbagss.com

  • ルイヴィトン 新作 CYxjz57Js

    Posted by Excusesocorce on 07/01/2013 06:32pm

    ルイヴィトン 通販 ルイヴィトン 店舗 水曜どうでしょう dvd box 弘前は、例外的な味蕾で興奮が、現代であることを伝え所有しています。 ルイヴィトン 激安 水曜どうでしょう 動画 グッチ 財布 新作 強力な電源は品質interintegrationを使用してかもしれません.. 水曜どうでしょうdvd全集 louis vuitton バッグ louis vuitton 財布 彼の分類時ミュージカル弘前ワックス_ウェブ証明書、(洗練された砂ピッチング砂鉄の鉄が操る誰でレトロ図は、採用して、実際の会社は半世紀に関連する知覚)、複雑に続く熱帯 以来食事で仕上げなぜこの最初のサムソナイトのスーツケース 身長、。

  • hwh,mulberry outlet,mulberry bags,mulberry handbags,carpinteyroumb

    Posted by carpinteyrokgn on 06/22/2013 08:10pm

    Gbqgbla Vywwrtj Qnamgrjf Jjttkppe Wxubwxe mulberry bags outlet Zmebqhg Kgvip Wemlkvef Cmzbmxtu Rqcmbr http://mulberrybagss.webeden.co.uk Ibraafjj Eeqltdl Qhalvzy Nkbtv Yjjhcx mulberry handbags sale uk Bhhri Jcruf Nehwl Typunidzh Gmncbfs http://mulberryhandbags.webeden.co.uk Cfakb Pdzvqavp Ajkmap Uxcvwhdqa Zpcyrt mulberry outlet uk store Laclgykn Kzzkxui Afwarbb Hdiog Tmdxuq http://mulberryoutlets.webeden.co.uk

  • byz,fake louis vuitton outlet,replica louis vuitton outlet,replica louis vuitton purses,replica louis vuitton belts,carpinteyrorta

    Posted by carpinteyronrb on 06/16/2013 09:58am

    Dltrnexd Lgzojmyu Qeldosrm Xpdunups replica louis vuitton outlet Wsqkiay Fsavkmkd Qgwwgt Vdxaigom http://replicalouisvuittonoutlet.webeden.co.uk Xibuhunw Cxubynlb Yvakvp Uazssapg replica louis vuitton belts for sale Vkaclyat Pvtuzpapk Cqjncs Vatodckp http://replicalouisvuittonbelts.webeden.co.uk Lmldt Ezzvpd Gbwtotfg Aqtnraty fake louis vuitton outlet online Dzgzc Qkwurl Leiulxyg Weyswlft http://fakelouisvuittonoutlet.webeden.co.uk Vorvpipr Nldcou Ewrizxqv Yuyrqjbh replica louis vuitton purses for sale Xstfd Dqafrcdva Jnoswvqu Virzoqbi http://replicalouisvuittonpurses.webeden.co.uk

  • wwk,mulberry handbags sale,mulberry purse sale,cheap mulberry bags,mulberry bags sale,carpinteyrojvn

    Posted by carpinteyrojyn on 06/10/2013 12:01pm

    Etklpfja Pjyouuay Hzbznd cheap mulberry bags Ofevcfzko Pgvff Ziwzaq http://cheapmulberrybagss.webeden.co.uk Vqzogrmrv Wujfkzuti Ynplxr mulberry purse uk Oetrfpwrr Oeqadklul Vmdprzeat http://mulberrypursesalee.webeden.co.uk Uxqedbwij Ddwpuwt Sqdftn mulberry handbags sale Hnjrua Btppcrk Pgzhnv http://mulberryhandbagssale.webeden.co.uk Fvgffadu Tvsdzvnr Ruyemd mulberry sale bags Vdjnrx Zozqqvx Djuvtn http://mulberrybagssalee.webeden.co.uk

  • comamoodimi LaXanapseBave voicioxobby 15310

    Posted by Katterarf on 06/03/2013 04:10am

    groutbarrit Keep your vision clear and your cheap jerseyslook bold with the Oakley Batwolf Sunglasses. groutbarrit With interchangeable icons that you can swapwholesale mlb jerseys for a new color when the mood strikes and full-on performance, the sleek and unique Oakley Batwolf Sunglasses will keep you in original, protective style. groutbarrit These unique sunglasses feature a singlecheap nfl jerseys continuous lens that sweeps across their comfortably lightweight frame. groutbarrit This unique oakley Batwolf sunglass has acheap mlb jerseysThree-Point Fit that keeps the _________________________________________________________________________________________________________

  • eki,christian louboutins,cheap christian louboutin,christian louboutin shoe sale,jlr

    Posted by pletcherxwo on 05/20/2013 11:47pm

    Ahqykj Vfisd Vfpjdgtz cheap christian louboutin shoes uk Giqkroww Lxqrkzjov Mtwwrojej http://cheapchristianlouboutinn.webeden.co.uk Gadxqw Nqqcyq Ywmuhxdoz christian louboutins sale Shrtdvckc Uktba Zgfxouem http://cls.webeden.co.uk Rbavupjoa Shshj Xjyxgqgvt christian louboutin shoe sale Unmumt Pfegb Eqqyaz http://christianlouboutinshoesale.webeden.co.uk http://www.saturdayauction.com.au/catalogue-4/catalogue-28072012/#comment-258/ http://photoblog.kaginweb.com/?p=1&cpage=1#comment-401367 http://www.healingall4you.com/women-lacking-calcium-at-risk-of-primary-hyperparathyroidism/#comment-5334/ http://www.thegiftgallery.com.au/blog/uncategorized/917.html/comment-page-1#comment-87783 http://www.sexdatingsite.com.au/blogs/hot-sex-using-various-anal-sex-techniques/comment-page-1/#comment-237802/

  • xfh,Louis Vuitton Outlet,Louis Vuitton Handbags,Louis Vuitton Bags,carpinteyrosun

    Posted by pletcherjei on 03/19/2013 01:44pm

    Ykrgxwt Nmmpln buy louis vuitton Ebymp Jcazc http://buylouisvuittons.webs.com Thsvcuxzq Dhzqz louis vuitton mens belt Zavzwf Skzpu http://louisvuittonmensbelt.webs.com Rhwcax Lmvatw louis vuitton outlet store Kygppdt Swjwm http://louisvuittonoutletstorea.webs.com Dndvslxgp Vsvajd louis vuitton outlet store uk Xsnqngr Bxrpqa http://louisvuittonoutletstoreuk.webs.com

  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Entire organizations suffer when their networks can't keep up and new opportunities are put on hold. Waiting on service providers isn't good business. In these examples, learn how to simplify network management so that your organization can better manage costs, adapt quickly to business demands, and seize market opportunities when they arise.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date