How to create systemwide hooks for keyboard (for keys like WIN, ALT+TAB)

  • Thread starter Thread starter Jigar mehta
  • Start date Start date
J

Jigar mehta

Hye,
How to create systemwide hooks for keyboard for keys like WIN, ALT+TAB,
CTRL+ALT+DEL even when the application does not have the focus on it...

Thanks,
 
I'm not aware of a managed interface to this (though I could be wrong).

I think you'll need to P/Invoke to SetWindowsHookEx and related functions;
that's what I had to do in one circumstance, although I was only using
application hooks.

Note that system-wide hooks incur a performance hit.
 
also note that as far as i know it is not possible to hook the ctrl + alt +
del sequence.

kind regards,
Bruno.
 
Back
Top