Disable task switching
I''m making a game using the Allegro library for Windows with MSVC. I want to disable task switching(CTRL+ALT+DEL, ALT+TAB, CTRL+ESC...). How can I do it?
Thanks to all replies
I don''t have any references in front of me right now... but, I think you can register a window as a screensaver. Screensavers get first crack at the CTRL-ALT-DEL, even if they aren''t visible.
I don''t know if that''s enough. You might need to check up on your cleanup code before exiting. Otherwise, you won''t be able to shutdown as windows is looking for permission from your (non-existant) screensaver.
-MartinJ
If I click here, can I still pull the plug out without hurting anything?
I don''t know if that''s enough. You might need to check up on your cleanup code before exiting. Otherwise, you won''t be able to shutdown as windows is looking for permission from your (non-existant) screensaver.
-MartinJ
If I click here, can I still pull the plug out without hurting anything?
I don''t know the immediate response, but here''s what I know. Control-Alt-Delete is handled by the Raw Input Thread. If you could intercept that thread, possibly using API hooking, you could intercept Ctrl-Alt-Del.
VK
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement