public void Install() { if (this._mHHook != IntPtr.Zero) this.Uninstall(); int threadId = NativeMethods.GetCurrentThreadId(); this._mHHook = NativeMethods.SetWindowsHookEx(this._mHookType, this._mFilterFunc, IntPtr.Zero, threadId); }