I'd like to know if I can set my whole system to lock up whenever I execute my program.
What I meant is that I don't want the mouse pointer to click anywhere other than my program. The program won't minimize or won't be able to press any button on the system (I.e. Start button) unless the user response to the program.
Any idea? Thanks in advance!
I.e. you want to go against the entire rationale of a multitasking/multiprocessing OS. You are not going to easily do that in a user mode program - for what should be very obvious reasons.
In the resource editors (at least in VC) for window templates there is a flag called SYSTEM MODAL. I guess that makes the system halt until the window is closed (I'd be surprised if Ctrl-Alt-Delete wouldn't work though).
Or the evil
to restrict the mouse movement to a set rectangle.
May need SetCapture()
Careful when debugging with this on.
>>> (I'd be surprised if Ctrl-Alt-Delete wouldn't work though).
Precisely. Windows is a multitasking system. You can try to simulate the behaviour you want using some of these methods, but you won't be able to make it bullet proof in user mode.