public void Start() { if (HookDllMethods.StartWindowsHook(_hookWindow.Handle)) { if (IntPtr.Size != 4) { Process.Start("WindowsHookRunner32bit.exe", "\"" + Assembly.GetEntryAssembly().GetName().Name + "\" " + _hookWindow.Handle); } _started = true; } }
public void Stop() { HookDllMethods.StopWindowsHook(); _started = false; }