コード例 #1
0
 private void onWindowDestroyed(WindowHookEventArgs aArgs)
 {
     if (null != InnerWindowDestroyed)
     {
         InnerWindowDestroyed(this, aArgs);
     }
 }
コード例 #2
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);
        }