public void SetHook() { if (hHook != 0) { return; } hookProc = LowLevelKeyboardProc; hHook = WindowsHooks.GetHook(HookTypes.WH_KEYBOARD_LL, LowLevelKeyboardProc); }
internal static extern IntPtr SetWindowsHookEx(WindowsHooks hook, Delegates.CallWndProc lpfn, IntPtr hMod, uint dwThreadId);