Page 1 of 2
Blockinput_() problem
Posted: Fri Feb 02, 2007 11:39 pm
by Matt
If I use Blockinput_(1) to disable the mouse and keyboard, the user will still be able to gain back control over the mouse and keyboard by pressing Control-Alt-Delete... is there anyway I can stop that?
Posted: Fri Feb 02, 2007 11:59 pm
by Bonne_den_kule
Not on XP or 2000 without any "hacks" I think...
Posted: Sat Feb 03, 2007 12:43 am
by ts-soft
this is good.
If Control-Alt-Delete doesn't work, i would put power off, put on and recycle the software

Posted: Sat Feb 03, 2007 12:45 am
by Matt
We'll actually I need it. I am making a 'vnc' type program, where you can control a client's computer, and one of the options I need is to lock all mouse and keyboard input.
Posted: Sat Feb 03, 2007 12:48 am
by ts-soft
then remove the keyboard

Posted: Sat Feb 03, 2007 1:04 am
by Matt
oh come on...
Posted: Sat Feb 03, 2007 6:06 am
by rsts
If the client wants their computer controlled, they will usually agree not to use the keyboard. The vnc programs I've used didn't lock me out of the computer if I wanted in - and that's pretty much the way I feel it should be.
Why do you feel they should be locked out of ctl/alt/delete?
cheers
Posted: Sat Feb 03, 2007 12:05 pm
by Kaeru Gaman
only bloody virus-programmers need such crap.
Posted: Sat Feb 03, 2007 12:12 pm
by PB
> only bloody virus-programmers need such crap
Let's not judge, FFS. Anyone can do what they want for an app. If he wants
to block input for his app, who are we to tell him no? Are we his daddy? He
never said the app was for public use -- it might be a private custom app for
all we know. Let's just stop with the judging over such a small thing. It's not
like he asked how to delete the Windows folder! The BlockInput API is made
by Microsoft for legitimate uses, so let him use it how he wants. Sheesh.
Posted: Sat Feb 03, 2007 12:16 pm
by Kaeru Gaman
yo ok, mate, you're right.
...it's just that the tiny hairs in my neck rise when I hear such questions...
Posted: Sat Feb 03, 2007 12:32 pm
by PB
I know what you mean, but he's using a normal documented API call, so it's
no big deal, in my opinion. I didn't mean to sound harsh but I hate it when
someone doesn't get help just because others assume it's for malicious intent.
Now, if he had asked how to use DeleteFile_() with GetSystemDirectory_() then
of course we would be very hesitant to help, but blocking input isn't such a big
problem. As the documentation says: if the process that made the block is killed,
then full normal input returns automatically, so all the user has to do is press
CTRL+ALT+DEL and kill the process, and bang, all systems normal again.
Posted: Sat Feb 03, 2007 2:53 pm
by Kaeru Gaman
correct. that's the reason why Ctrl-Alt-Del is not blockable,
but that was what he was asking for.
not simple input-blocking, but blocking Ctrl-Alt-Del.....
Posted: Sat Feb 03, 2007 6:28 pm
by Matt
I am making a vnc-type program, but not exactly. It's for personal use in my house over my computers really. What I needed was something to stop all input on the users side, so they would not be able to interfere with anything that the controller person is doing.
Posted: Sat Feb 03, 2007 7:42 pm
by rsts
Well, if it's your kids, you ought to be able to tell them to say off while you do your thing.
If it's your wife, you might have to try "honey, would you please. . ."
I still see no valid case for trapping ctl/alt/delete - but it's your place, so the remove the keyboard ought to be a valid option too.
good luck
Posted: Sat Feb 03, 2007 7:50 pm
by Matt
thanks
I plan on just leaving it then, blockinput will work for me I guess,
thanks everyone.
Matt