示例#1
0
 private IntPtr ProcessMouse(int nCode, IntPtr wParam, IntPtr lParam)
 {
     try
     {
         if (nCode >= 0)
         {
             switch (wParam.ToInt32())
             {
             case LowLevelAdapter.WM_LBUTTONDOWN:
             case LowLevelAdapter.WM_RBUTTONDOWN:
                 OnMouseEvent(new EventArgs());
                 break;
             }
         }
     }
     catch { }
     return(LowLevelAdapter.NextHook(nCode, wParam, lParam));
 }
示例#2
0
 private IntPtr ProcessKeyPress(int nCode, IntPtr wParam, IntPtr lParam)
 {
     return(ProcessKeyPressInt(nCode, wParam, lParam) ?
            new IntPtr(1) :
            LowLevelAdapter.NextHook(nCode, wParam, lParam));
 }