How to disable a keyboards shutdown and sleep keys ?
JJ,
What's more annoying is that, the kernel ignores injected power
management scancodes when sent using SendInput(). This makes
it impossible to have a custom key or shortcut to act as power
management key,
Yup, I could imagine a use for that. And some very nasty "jokes" on
someone elses 'puter too.
unless we manually call a power action function ourselves.
but as those are available ... :-)
I was thinking of translating those two (three when including the "wake from
sleep" key) to some multimedia keystrokes - which result in calling
predefined programs (browser, email, etc). But nope. :-\
Regards,
Rudy Wieser
|