Managed Windows API
Hook Class
NamespacesManagedWinapi.HooksHook
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 MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
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

Assembly: ManagedWinapi (Module: ManagedWinapi) Version: 0.3.0.0 (0.3)