View Single Post
  #9  
Old April 28th 20, 02:59 AM posted to microsoft.public.windowsxp.general
JJ[_11_]
external usenet poster
 
Posts: 744
Default How to disable a keyboards shutdown and sleep keys ?

On Mon, 27 Apr 2020 16:25:10 +0200, R.Wieser wrote:

It looks like that, yes. I was just assuming (hoping) that the low-level
keyboard hook could at least /see/ those keys (so I knew which ones to try
in the "Scancode map" I spoke of earlier).


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, unless we manually
call a power action function ourselves.
Ads