Esempio n. 1
0
 public int SetHook()
 {
     m_hProc = new HookRelated.HookProc(RememberKeyboard);
     m_Code  = HookRelated.SetWindowsHookEx((int)HookRelated.HookConduct.WH_KEYBOARD_LL, m_hProc, IntPtr.Zero, 0);
     return(m_Code);
 }
Esempio n. 2
0
 public int SetHook()
 {
     m_hProc = new HookRelated.HookProc(RememberMouse);
     m_Code  = HookRelated.SetWindowsHookEx((int)HookRelated.HookConduct.WH_MOUSE_LL, m_hProc, IntPtr.Zero, 0);
     return(m_Code);
 }