/// <summary> /// Initializes new instance of LLMouseFilter /// </summary> public LLMouseFilter() : base(HookType.WH_MOUSE) { // we provide our own callback function callbackFunc = new HookCallbackFunction(this.MouseHookCallback); Install(); }
/// <summary> /// Creates new hook of specified type with user defined handling function /// </summary> /// <param name="hook">The type of the hook.</param> /// <param name="func">Delegate of the user defined function</param> public WindowsHook(HookType hook, HookCallbackFunction func) { hookType = hook; callbackFunc = func; }
/// <summary> /// Creates new hook of specified type with gereral handling function /// </summary> /// <param name="hook">The type of the hook.</param> public WindowsHook(HookType hook) { hookType = hook; callbackFunc = new HookCallbackFunction(this.CoreHookProc); }
protected static extern IntPtr SetWindowsHookEx(HookType code, HookCallbackFunction func, IntPtr hInstance, int threadID);
/// <summary> /// Creates new hook of specified type with user defined handling function /// </summary> /// <param name="hook">The type of the hook.</param> /// <param name="func">Delegate of the user defined function</param> public WindowsHook(HookType hook, HookCallbackFunction func) { hookType = hook; callbackFunc = func; }
/// <summary> /// Creates new hook of specified type with gereral handling function /// </summary> /// <param name="hook">The type of the hook.</param> public WindowsHook(HookType hook) { hookType = hook; callbackFunc = new HookCallbackFunction(this.CoreHookProc); }
protected static extern IntPtr SetWindowsHookEx(HookType code, HookCallbackFunction func, IntPtr hInstance, int threadID);