示例#1
0
 private void OnWindowDestroyed(WindowHookEventArgs aArgs)
 {
     if (null != InnerWindowDestroyed)
     {
         InnerWindowDestroyed(this, aArgs);
     }
 }
示例#2
0
        private void Instance_FirefowWindowCreated(object sender, WindowHookEventArgs e)
        {
            BeginInvoke(new Action(() =>
            {
                SetParent(e.Handle, Handle);
            }));
            var windowCreationHookerByClassName = sender as WindowCreationHookerByClassName;

            windowCreationHookerByClassName?.Dispose();
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
 protected void OnWindowDestroyed(WindowHookEventArgs aArgs)
 {
     InnerWindowDestroyed?.Invoke(this, aArgs);
 }
 private void OnWindowCreated(WindowHookEventArgs aArgs)
 {
     InnerWindowCreated?.Invoke(this, aArgs);
 }