Пример #1
0
 public UserKeyBoard()
 {
     KeyBoardProc   = KeyBoardCallBack;
     KeyBoardHandle = WindowsNativeMethods.SetWindowsHookEx(HookCodes.HookType.WH_KEYBOARD_LL, KeyBoardProc, IntPtr.Zero, 0);
 }
Пример #2
0
 public UserMouse()
 {
     MouseProc   = MouseCallBack;
     MouseHandle = WindowsNativeMethods.SetWindowsHookEx(HookCodes.HookType.WH_MOUSE_LL, MouseProc, IntPtr.Zero, 0);
 }