Beispiel #1
0
        /// <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();
        }
Beispiel #2
0
 /// <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;
 }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
        protected static extern IntPtr SetWindowsHookEx(HookType code, 
			HookCallbackFunction func, IntPtr hInstance, int threadID);
Beispiel #5
0
 /// <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;
 }
Beispiel #6
0
 /// <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);
 }
Beispiel #7
0
 protected static extern IntPtr SetWindowsHookEx(HookType code,
                                                 HookCallbackFunction func, IntPtr hInstance, int threadID);