Advertisement

Disable task switching

Started by June 28, 2000 02:27 AM
2 comments, last by Roka 24 years, 5 months ago
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?
Advertisement
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
Try this link.

http://support.microsoft.com/view/dev.asp?kb=243455

Mike Roberts
aka milo
mlbobs@telocity.com

This topic is closed to new replies.

Advertisement