private void OnWindowDestroyed(WindowHookEventArgs aArgs) { if (null != InnerWindowDestroyed) { InnerWindowDestroyed(this, aArgs); } }
private void Instance_FirefowWindowCreated(object sender, WindowHookEventArgs e) { BeginInvoke(new Action(() => { SetParent(e.Handle, Handle); })); var windowCreationHookerByClassName = sender as WindowCreationHookerByClassName; windowCreationHookerByClassName?.Dispose(); }
private bool EnumWindowsProc(IntPtr hWnd, int lParam) { WindowHookEventArgs tArgument = new WindowHookEventArgs(); tArgument.Handle = hWnd; tArgument.WindowTitle = GetWindowText(hWnd); tArgument.WindowClass = GetClassName(hWnd); iNewWindowList.Add(tArgument.Handle, tArgument); return(true); }
public static bool EnumWindowsProc(Dictionary <IntPtr, WindowHookEventArgs> newWindows, IntPtr hWnd, int lParam) { var tArgument = new WindowHookEventArgs { Handle = hWnd, WindowTitle = GetWindowText(hWnd), WindowClass = GetClassName(hWnd) }; newWindows.Add(tArgument.Handle, tArgument); return(true); }
protected void OnWindowDestroyed(WindowHookEventArgs aArgs) { InnerWindowDestroyed?.Invoke(this, aArgs); }
private void OnWindowCreated(WindowHookEventArgs aArgs) { InnerWindowCreated?.Invoke(this, aArgs); }