I'm using Charles Petzold's Programming Windows books and he suggests adding this code to your windows procedure to disable the ALT key commands:
I added the code and tried it on Windows XP and it has no effect!? I also tried it on Windows 98 and it has no effect there either?! In each case I made certain that my program had the focus (and I even closed all other windows to make sure).Code:case WM_SYSKEYDOWN: case WM_SYSKEYUP: case WM_SYSCHAR: return (0);
Does anyone know how to disable the ALT key commands (CTRL-ALT-DEL, ALT-TAB, etc) using the Win API?
Someone told me that the ALT key commands are at a lower level than the Win API in Windows XP, so there was no effective way to disable them. However, I would think that you'd at least be able to disable them in Windows 98!
Also, what's the point in having a Win API if it prevents you from doing certain things? This isn't Bill's Windows, this is MY Windows!