private Point GetHitPoint(IntPtr struct_pointer) { MouseLLHook mouse_hook = (MouseLLHook)Marshal.PtrToStructure( struct_pointer, typeof(MouseLLHook)); return(new Point(mouse_hook.X, mouse_hook.Y)); }
public InputSpyWindow(KeyboardLLHook keyboardLLHook, MouseLLHook mouseLLHook) { InitializeComponent(); this.Closed += InputSpyWindow_Closed; this.KeyboardLLHook = keyboardLLHook; this.MouseLLHook = mouseLLHook; }
public GlobalHooks(IntPtr Handle) { _Handle = Handle; _CBT = new CBTHook(_Handle); _Shell = new ShellHook(_Handle); _Keyboard = new KeyboardHook(_Handle); _Mouse = new MouseHook(_Handle); _KeyboardLL = new KeyboardLLHook(_Handle); _MouseLL = new MouseLLHook(_Handle); _CallWndProc = new CallWndProcHook(_Handle); _GetMsg = new GetMsgHook(_Handle); }