I am writing an application, during part of which, a client will be answering questions on the screen. During this time, I don't want the client to be able to access any part of the operating system, or to be able to start up any other program. I also would like to stop a system restart with ctrl-alt-del.
I've been reading about hooks, and believe that using the WH_CBT hook will help me accomplish this. Does anyone know of any code that is already written that would accomplish this?
I still have some unanswered questions about this. I read that if the user presses Ctrl-Esc, it terminates the hook. This key combination also brings up the start menu. I would also like to block the Ctrl-Esc. Can I do this with WH_CBT? How do I block ctrl-alt-del?
Finally, the application will likely be a 16 bit app. I'd like to have this work in both Win 3.1 as well as 95/98 and NT. Does the DLL have to be a 16 bit DLL to match my application, or a 32 bit DLL to match the operating system. If the latter is true, then I must find a way for my program to know what environment it is running in so I can call the appropriate DLL.