Re:Disable [ALT] F4 and [ALT] [TAB]?
On Fri, 29 Mar 1996 16:17:33, j...@interaccess.com (John
Quote
Tieberg-Bailie) wrote:
>I am attempting to develop a Delphi 1.0 application that would require
>some manner of password to escape from and which cannot be exited from in
>any other manner. I would like to disable Windows' [ALT] F4 and
>[ALT] [TAB] functions. Can Delphi do this? Any suggestions would be
>greatly appreciated. Thanks!
If you install an application-wide CBT hook with "SetWindowsHookEx"
Windows kindly will notify you of a couple of events and ask you
whether to allow / disallow then. Amongst these is
WM_SYSCOMMAND with its parameters: sc_hotkey and sc_tasklist
That should get you started.
Using this I have taken control over a 16bit system rather completely.
BEWARE: This will NOT work on a 32bit OS (read Win95) - AFAIK (and can
tell) Win95 allows the hook only for the 16bit part...
You would have to install a 32bit hook - but how to do this with a
16bit exe / compiler is something I really would like to know / find
out myself !
If anyone should happen to know how to install a 32bit hook _within_ a
pure 16bit executable / DLL, please, post it to this group or send me
eMail.
HTH and TIA for the 32bit part...
--
Viele Gruesse / Best regards
Stefan
Stefan.Hoffmeis...@Uni-Passau.de