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

Allows handling system-wide low-level mouse hooks

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

Syntax

C#
[DefaultEventAttribute("ButtonEvent")]
public class LowLevelMouseHook : Win32Hook
Visual Basic (Declaration)
<DefaultEventAttribute("ButtonEvent")> _
Public Class LowLevelMouseHook _
	Inherits Win32Hook
Visual C++
[DefaultEventAttribute(L"ButtonEvent")]
public ref class LowLevelMouseHook : public Win32Hook
J#
/** @attribute DefaultEventAttribute("ButtonEvent") */
public class LowLevelMouseHook extends Win32Hook
JScript
public class LowLevelMouseHook 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_MOUSE_LL).

Inheritance Hierarchy

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

See Also