[This is preliminary documentation and is subject to change.]
The LowLevelMouseHook type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| LowLevelMouseHook()()()() | Default CTor | |
| LowLevelMouseHook(Boolean) | CTor with possibility of immediate hook activation |
Methods
| Name | Description | |
|---|---|---|
| CallNextHook | The CallNextHookEx function passes the hook information to the next hook procedure in the current hook chain. A hook procedure can call this function either before or after processing the hook information. (Inherited from Win32Hook.) | |
| Dispose()()()() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from Win32Hook.) | |
| Dispose(Boolean) | Implements Dispose()()()() (Inherited from Win32Hook.) | |
| GetModuleHandle | Gets module handle pased to hMod parameter of SetWindowsHookEx Win32 API function (Overrides Win32Hook..::..GetModuleHandle()()()().) | |
| HookProc | The LowLevelMouseProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system call this function every time a new mouse input event is about to be posted into a thread input queue. The mouse input can come from the local mouse driver or from calls to the mouse_event function. If the input comes from a call to mouse_event, the input was "injected". However, the WH_MOUSE_LL hook is not injected into another process. Instead, the context switches back to the process that installed the hook and it is called in its original context. Then the context switches back to the application that generated the event. The HOOKPROC type defines a pointer to this callback function. LowLevelMouseProc is a placeholder for the application-defined or library-defined function name. | |
| OnButtonEvent | Called when mouse button status changes. Raises the ButtonEvent event. | |
| OnMouseMove | Called when mouse moves. Raises the MouseMove event. | |
| OnWheel | Called when mouse wheel rotates. Raises the Wheel event. | |
| RegisterAsyncHook | Registers a low-level keyboard hook on curent thread. The thread will be exited when hook is unregistered. (Inherited from Win32Hook.) | |
| RegisterHook | Registers a low-level keyboard hook, so keyboard events are obtained by this class. (Inherited from Win32Hook.) | |
| UnregisterHook | Unregisters registered hook for this instance (Inherited from Win32Hook.) |
Properties
| Name | Description | |
|---|---|---|
| HandledHookType | If overriden in derived class gets type of hook represented by derived class (Overrides Win32Hook..::..HandledHookType.) | |
| HookHandle | Gets handle of current hook if it is registered (Inherited from Win32Hook.) | |
| IsAsync | Gets value indicating if hook events occur on different thread than hook was registered. (Inherited from Win32Hook.) | |
| IsDisposed | Gets value indicating if this instance was already disposed (Inherited from Win32Hook.) | |
| Registered | Gets value indicating if hook is registered for this instance (Inherited from Win32Hook.) |
Events
| Name | Description | |
|---|---|---|
| ButtonEvent | Raised when status of any mouse button changes | |
| Disposed | Raised when object is disposed (Inherited from Win32Hook.) | |
| MouseMove | Raised when mouse moves | |
| Wheel | Raised when mouse wheel rotates. |