Blockinput_() problem
Blockinput_() problem
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?
-
Bonne_den_kule
- Addict

- Posts: 841
- Joined: Mon Jun 07, 2004 7:10 pm
this is good.
If Control-Alt-Delete doesn't work, i would put power off, put on and recycle the software
If Control-Alt-Delete doesn't work, i would put power off, put on and recycle the software
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

then remove the keyboard 
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
> 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.
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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
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.
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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
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
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


