HookBase Class
Provides a base class for a Win32 hook.
public abstract class HookBase : IDisposable
- Inheritance:
- object object
- Derived:
- MouseHook
- Implements:
- IDisposable
Methods
Dispose()
Disposes any resources used by the object.
public void Dispose()
OnHookCallback(int, IntPtr, IntPtr)
Called when the hook receives a callback.
protected virtual bool OnHookCallback(int code, IntPtr wParam, IntPtr lParam)
Parameter | Type | Description |
---|---|---|
code | int | The hook code. |
wParam | IntPtr | The first parameter. |
lParam | IntPtr | The second parameter. |
Returns
- bool:
Whether the hook has been handled.