[This is preliminary documentation and is subject to change.]

Allows handling system-wide low-level keyboard hooks

Namespace:  Tools.DevicesT
Assembly:  Tools.Win (in Tools.Win.dll) Version: 1.5.2.0

Syntax

C#
[DefaultEventAttribute("KeyEvent")]
public class LowLevelKeyboardHook : Win32Hook
Visual Basic (Declaration)
<DefaultEventAttribute("KeyEvent")> _
Public Class LowLevelKeyboardHook _
	Inherits Win32Hook
Visual C++
[DefaultEventAttribute(L"KeyEvent")]
public ref class LowLevelKeyboardHook : public Win32Hook
J#
/** @attribute DefaultEventAttribute("KeyEvent") */
public class LowLevelKeyboardHook extends Win32Hook
JScript
public class LowLevelKeyboardHook extends Win32Hook

Remarks

It is highly recomended not to install multiple hooks of same type in one application and to keep hook-handling code as quick as possible. You can significantly slow down user typing experience.

This class uses Win32 API function SetWindowsHookEx(WH_KEYBOARD_LL).

Inheritance Hierarchy

System..::.Object
  Tools.API.Hooks..::.Win32Hook
    Tools.DevicesT..::.LowLevelKeyboardHook

See Also