HookBase Class
Provides a base class for a Win32 hook.
public abstract class HookBase : DisposableObjectBase, IDisposable
- Inheritance:
- object DisposableObjectBase object
- Derived:
- MouseHook
- Implements:
- IDisposable
Methods
Dispose(bool)
Releases the unmanaged resources used by the object and optionally releases the managed resources.
protected override void Dispose(bool disposing)
| Parameter | Type | Description |
|---|---|---|
| disposing | bool |
|
Remarks
This method is called by the public Dispose() method and the Finalize method.
Dispose invokes this method with the disposing parameter set to true.
Finalize invokes this method with disposing set to false.
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.
Inherited Members
- DisposableObjectBase.Dispose()
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()