Exemple #1
0
        public void SetHook()
        {
            if (hHook != 0)
            {
                return;
            }

            hookProc = LowLevelKeyboardProc;
            hHook    = WindowsHooks.GetHook(HookTypes.WH_KEYBOARD_LL, LowLevelKeyboardProc);
        }
Exemple #2
0
 internal static extern IntPtr SetWindowsHookEx(WindowsHooks hook, Delegates.CallWndProc lpfn, IntPtr hMod, uint dwThreadId);