A hook is a point in the system message-handling mechanism where an application
can install a subroutine to monitor the message traffic in the system and process
certain types of messages before they reach the target window procedure.
Declaration Syntax
C# |
public class Hook : Component
Members
All Members | Constructors | Methods | Properties | Events | |
Icon | Member | Description |
---|---|---|
Hook(HookType, Hook..::.HookCallback, Boolean, Boolean) |
Creates a new hook and hooks it.
| |
Hook(HookType, Boolean, Boolean) |
Creates a new hook.
| |
Hook(IContainer) |
Creates a new hook.
| |
Hook()()() |
Creates a new hook.
| |
Callback |
Occurs when the hook's callback is called.
| |
Dispose(Boolean) |
Unhooks the hook if necessary.
(Overrides Component.Dispose(Boolean).) | |
Hooked |
Whether this hook has been started.
| |
InternalCallback(Int32, IntPtr, IntPtr) |
Override this method if you want to prevent a call
to the CallNextHookEx method or if you want to return
a different return value. For most hooks this is not needed.
| |
StartHook()()() |
Hooks the hook.
| |
Type |
The type of the hook.
| |
Unhook()()() |
Unhooks the hook.
|
Inheritance Hierarchy