public void EndSpying() { _timer.Enabled = false; hookKeys.UnHook(); _locator?.Close(); _locator?.Dispose(); _locator = null; }
public void BeginSpying() { _locator?.Close(); _locator?.Dispose(); _locator = new SpyAgentLocator(); MakePassThrough(_locator.Handle); _timer.Enabled = true; hookKeys.SetupHook(); }