CallNextHookEx() private method

private CallNextHookEx ( IntPtr hook, int nCode, IntPtr wp, IntPtr lp ) : IntPtr
hook System.IntPtr
nCode int
wp System.IntPtr
lp System.IntPtr
return System.IntPtr
 private static IntPtr CaptureMouseButton(int nCode, IntPtr wp, IntPtr lp)
 {
     if (nCode >= 0)
     {
         if ((bool)SEBSettings.valueForDictionaryKey(SEBSettings.settingsCurrent, "touchOptimized") && (bool)SEBSettings.valueForDictionaryKey(SEBSettings.settingsCurrent, "enableTouchExit"))
         {
             SebKeyCapture.TestTouchExitSequence(Cursor.Position);
         }
         if (SebKeyCapture.DisableMouseButton(nCode, wp, lp))
         {
             return((IntPtr)1);
         }
     }
     return(SebKeyCapture.CallNextHookEx(SebKeyCapture.ptrMouseHook, nCode, wp, lp));
 }
 private static IntPtr CaptureKey(int nCode, IntPtr wp, IntPtr lp)
 {
     if (nCode >= 0)
     {
         SebKeyCapture.TestAppExitSequences(wp, lp);
         SebKeyCapture.KBDLLHOOKSTRUCT structure = (SebKeyCapture.KBDLLHOOKSTRUCT)Marshal.PtrToStructure(lp, typeof(SebKeyCapture.KBDLLHOOKSTRUCT));
         if ((bool)SEBClientInfo.getSebSetting("enableAltTab")["enableAltTab"])
         {
             if (structure.key == Keys.Tab && structure.flags == 32 && (int)wp == 260)
             {
                 if (SebKeyCapture.Tab_Pressed_First_Time && (int)wp == 260)
                 {
                     SEBClientInfo.SebWindowsClientForm.ShowApplicationChooserForm();
                     if (SebKeyCapture.Tab_Pressed_First_Time)
                     {
                         SebKeyCapture.Tab_Pressed_First_Time = false;
                     }
                     return((IntPtr)1);
                 }
                 if (!SebKeyCapture.Tab_Pressed_First_Time && (int)wp == 260)
                 {
                     SEBClientInfo.SebWindowsClientForm.SelectNextListItem();
                     return((IntPtr)1);
                 }
             }
             if ((structure.key == Keys.LMenu && structure.flags == 128 || structure.key == Keys.RMenu && structure.flags == 129) && (int)wp == 257)
             {
                 SEBClientInfo.SebWindowsClientForm.HideApplicationChooserForm();
                 SebKeyCapture.Tab_Pressed_First_Time = true;
             }
         }
         if (SebKeyCapture.DisableKey(wp, lp))
         {
             return((IntPtr)1);
         }
     }
     return(SebKeyCapture.CallNextHookEx(SebKeyCapture.ptrKeyboardHook, nCode, wp, lp));
 }