   disabling ALT+TAB
  Hi all !that''s quite simple, i''d like to know how to disbale the ALT+TAB key combination under Win32.I tries some things such as accelerators but no results were made...So do you have any solution ???Thanks 
  Why do you want to disable Alt-Tab? It''s never a very good idea. ;  You cannot disable Alt-Tab. Windows is a pre-emptive OS and having an application disable that would destroy the feature of the OS (if you could deactivate Alt-Tab, we would degenerate to cooperative multitasking just like Windows 3.1 had).You can detect Alt-Tab in your application though. Look for the WM_ACTIVATE message.;  yup. in case your game crashes for various reasons, you are fux0red. Also players can''t switch between their running apps and your game. ;  There is atleast 1 thread like this every month. Google. Search this forum. Atleast try to solve it yourself!! It sickens me how lazy people are these days. ;  If you even bothered to read more than the thread title you would see that he made quite a few attempts himself... ;  thanks for awswers.brassfish you makes me laugh so there''s no real solution as it seems ? ;quote:You cannot disable Alt-Tab. Windows is a pre-emptive OS and having an application disable that would destroy the feature of the OS (if you could deactivate Alt-Tab, we would degenerate to cooperative multitasking just like Windows 3.1 had).I''m pretty sure you can disable alt tab, try running a Quake 3 dedicated server and alt tab stops working. However I don''t know how you''d do it. ;  Alt-Tab, is a system function, users expect that it should work and thus you shouldn't disable it,if this is a case about DirectDraw surface loss,to quote a document released by ms.Q: How do I disable Alt-Tab?A: You don't, really.But, there are a few ways you can handle it, some people have told me that WM_ACTIVATE can be used to detect a 'switch-away' before it can reset the display and trash volitile vram surfaces so you can try that(i havent been able to make it work reliably though) the other option is to keep an SRAM copy of your vram surfaces, that way when they are lost you can blt them back. if you never change the contence of these surfaces then you can just load them back from file if you wish too. A good place to determine a surface-lost condition is to check the return value of the DirectDrawSurface::Flip method, if it returns DDERR_SURFACELOST then it means the primary or backbuffer surfaces have been lost, when, in this event you can attempt to Restore the surface(s) when the restoration works you can begin to restore all of your lost surfaces, be sure to do an IsLost test on all surfaces(unless you have a way of knowing which ones are vram, then only test them) you can use use one of the methods mentioned above.Other than that i cant see why you would want to disable alt-tab, doing so breaks the concept of a uniform interface between all applications.   Raymond Jacobs,www.EDIGames.comwww.EtherealDarkness.com [edited by - EDI on February 10, 2004 4:13:14 PM] [edited by - EDI on February 10, 2004 4:17:43 PM];  I believe this is a real problem in Windows (and other multitaskin OSs). It''s perfectly valid to have a game that should handle the Alt+Tab combination itself instead of having windows switch to another task. Say you have a ego shooter where you have Alt for shooting and shift for going fast (okay, better combinations exist, but it''s valid)... So there you have it.Don''t get me wrong. I also do have the opinion that you shouldn''t disable system-hotkeys at all, but I think that there are valid reasons to do. So it''s basically a problem of the underlying OS that is not able to provide the services demanded by the user...Just my 2 cents,Alex