View Single Post
  #8  
Old April 27th 20, 03:25 PM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default How to disable a keyboards shutdown and sleep keys ?

JJ,

Power management key codes are "eaten" by the kernel.


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).

Under DOS, user programs can hook the keyboard IRQ handler - thus
can see the power management key scancodes - before they're processed
by BIOS.


Yup, remember that too. Though I normally just hooked the BIOS vector for
them (INT 0x15 IIRC).

Regards


Ads