private IntPtr MouseHookDelegate(Int32 Code, IntPtr wParam, IntPtr lParam) { if (Code < 0) { return(WindowsHookHelper.CallNextHookEx(mouseHandle, Code, wParam, lParam)); } if (MouseMoved != null) { MouseMoved(this, new EventArgs()); } return(WindowsHookHelper.CallNextHookEx(mouseHandle, Code, wParam, lParam)); }
private IntPtr KeyboardHookDelegate( Int32 Code, IntPtr wParam, IntPtr lParam) { if (Code < 0) { return(WindowsHookHelper.CallNextHookEx( keyBoardHandle, Code, wParam, lParam)); } if (KeyBoardKeyPressed != null) { KeyBoardKeyPressed(this, new EventArgs()); } return(WindowsHookHelper.CallNextHookEx( keyBoardHandle, Code, wParam, lParam)); }