Пример #1
0
 private static void ForceUnsunscribeFromGlobalKeyboardEvents()
 {
     if (HookManager.s_KeyboardHookHandle != 0)
     {
         int num = HookManager.UnhookWindowsHookEx(HookManager.s_KeyboardHookHandle);
         HookManager.s_KeyboardHookHandle = 0;
         HookManager.s_KeyboardDelegate   = null;
         if (num == 0)
         {
             int lastWin32Error = Marshal.GetLastWin32Error();
         }
     }
 }
Пример #2
0
 // Token: 0x06000068 RID: 104 RVA: 0x00002CC4 File Offset: 0x00000EC4
 private static void ForceUnsunscribeFromGlobalMouseEvents()
 {
     if (HookManager.s_MouseHookHandle != 0)
     {
         int num = HookManager.UnhookWindowsHookEx(HookManager.s_MouseHookHandle);
         HookManager.s_MouseHookHandle = 0;
         HookManager.s_MouseDelegate   = null;
         if (num == 0)
         {
             throw new Win32Exception(Marshal.GetLastWin32Error());
         }
     }
 }
Пример #3
0
        private static void ForceUnsunscribeFromGlobalKeyboardEvents()
        {
            if (HookManager.s_KeyboardHookHandle == 0)
            {
                return;
            }
            int num = HookManager.UnhookWindowsHookEx(HookManager.s_KeyboardHookHandle);

            HookManager.s_KeyboardHookHandle = 0;
            HookManager.s_KeyboardDelegate   = (HookManager.HookProc)null;
            if (num == 0)
            {
                throw new Win32Exception(Marshal.GetLastWin32Error());
            }
        }