public void Install(IntPtr windowHandle) { if (isInstalled) { throw new InvalidOperationException("This interceptor has already been installed."); } mainWindowHandle = windowHandle; hotkeyInterception.Start(windowHandle); isInstalled = true; }
public void Install(IntPtr windowHandle) { //TODO: proper exceptions for install for ALL installs (don't install when already installed etc). this.windowHandle = windowHandle; hotkeyInterception.Start(windowHandle); }