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, nint, nint)
Called when the hook receives a callback.
protected virtual bool OnHookCallback(int code, nint wParam, nint lParam)
Parameter | Type | Description |
---|---|---|
code | int | The hook code. |
wParam | nint | The first parameter. |
lParam | nint | The second parameter. |
Returns
- bool:
Whether the hook has been handled.