Ejemplo n.º 1
0
 public void SetHook()
 {
     hookProc = new WinUserDll.HookProc(MouseHookProc);
     hookId   = WinUserDll.SetWindowsHookEx(WH_MOUSE_LL, hookProc, IntPtr.Zero, 0);
 }
Ejemplo n.º 2
0
 public void SetHook()
 {
     hookProc = new WinUserDll.HookProc(KeyboardHookProc);
     hookId   = WinUserDll.SetWindowsHookEx(WH_KEYBOARD_LL, hookProc, IntPtr.Zero, 0);
 }