public static void Hook() { _nextHook = WindowAPI.SetWindowsHookExA(WinHookType.WH_CALLWNDPROC, SetWindowsHook, IntPtr.Zero, Process.GetCurrentProcess().Threads[0].Id); }