C# Class CodeProject.Win32API.Hook.WindowsHook

Class to expose the windows hook mechanism.
Datei anzeigen Open project: Duke-Jones/ED-IBE

Public Methods

Method Description
Install ( ) : void

Install the hook.

Uninstall ( ) : void

Uninstall the hook.

WindowsHook ( HookType hook ) : System

Construct a HookType hook.

WindowsHook ( HookType hook, HookProc func ) : System

Construct a HookType hook giving a hook filter delegate method.

Private Methods

Method Description
CallNextHookEx ( IntPtr hhook, int code, IntPtr wParam, IntPtr lParam ) : int
CoreHookProc ( int code, IntPtr wParam, IntPtr lParam ) : int
OnHookInvoke ( HookEventArgs e ) : void
SetWindowsHookEx ( HookType code, HookProc func, IntPtr hInstance, int threadID ) : IntPtr
UnhookWindowsHookEx ( IntPtr hhook ) : int

Method Details

Install() public method

Install the hook.
public Install ( ) : void
return void

Uninstall() public method

Uninstall the hook.
public Uninstall ( ) : void
return void

WindowsHook() public method

Construct a HookType hook.
public WindowsHook ( HookType hook ) : System
hook HookType Hook type.
return System

WindowsHook() public method

Construct a HookType hook giving a hook filter delegate method.
public WindowsHook ( HookType hook, HookProc func ) : System
hook HookType Hook type
func HookProc Hook filter event.
return System